Makefile.in 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
  2. # Copyright (C) 1994,1995 Ian Jackson <ijackson@nyx.cs.du.edu>
  3. #
  4. # This is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as
  6. # published by the Free Software Foundation; either version 2,
  7. # or (at your option) any later version.
  8. #
  9. # This is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public
  15. # License along with dpkg; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. srcdir = @srcdir@
  18. VPATH = @srcdir@
  19. prefix = @prefix@
  20. libdir = $(prefix)/lib
  21. dpkglibdir = $(libdir)/dpkg
  22. methodsdir = $(dpkglibdir)/methods
  23. datadir = /var/lib/dpkg
  24. methodsdatadir = $(datadir)/methods
  25. methodsmnt = $(datadir)/methods/mnt
  26. SCRIPTS = setup update install
  27. METHODS = disk floppy
  28. DESCS = disk.desc.harddisk disk.desc.mounted disk.desc.cdrom \
  29. disk.desc.nfs floppy.desc.floppy
  30. INSTALL = @INSTALL@
  31. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  32. INSTALL_DATA = @INSTALL_DATA@
  33. all:
  34. install:
  35. set -e; for m in $(METHODS) ; do \
  36. d=$(methodsdir)/$$m ; \
  37. test -d $$d || mkdir $$d ; \
  38. e=$(methodsdatadir)/$$m ; \
  39. test -d $$e || mkdir $$e ; \
  40. $(INSTALL_DATA) $$m.names $$d/names ; \
  41. for s in $(SCRIPTS) ; do \
  42. $(INSTALL_PROGRAM) $$m.$$s $$d/$$s ; \
  43. done ; \
  44. done
  45. set -e; for x in $(DESCS) ; do \
  46. d=`echo $$x | sed -e 's:\.:/:'` ; \
  47. $(INSTALL_DATA) $$x $(methodsdir)/$$d ; \
  48. done
  49. clean:
  50. rm -f core
  51. distclean: clean
  52. rm -f Makefile *.orig *~ *.~* ./#*#