Makefile.in 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. bindir = $(prefix)/bin
  21. sbindir = $(prefix)/sbin
  22. datadir = /var/lib/dpkg
  23. altsdatadir = $(datadir)/alternatives
  24. mandir = $(prefix)/man
  25. man1dir = $(mandir)/man1
  26. man8dir = $(mandir)/man8
  27. man1 = 1
  28. man8 = 8
  29. libdir = $(prefix)/lib
  30. dpkglibdir = $(libdir)/dpkg
  31. etcdir= /etc
  32. altsetcdir = $(etcdir)/alternatives
  33. perlpath = @perlpath@
  34. MAN1 = dpkg-name
  35. EXC = dpkg-name
  36. MAN8 = update-rc.d start-stop-daemon update-alternatives install-info
  37. SBIN = update-rc.d start-stop-daemon update-alternatives install-info \
  38. dpkg-scanpackages dpkg-divert cleanup-info
  39. INSTALL = @INSTALL@
  40. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  41. INSTALL_DATA = @INSTALL_DATA@
  42. .SUFFIXES: .pl .sh .gzuue
  43. .pl:
  44. sed <$@.pl 's:^#!/usr/bin/perl:#!$(perlpath):' \
  45. | ../insert-version.pl >$@.new
  46. chmod +x $@.new
  47. mv $@.new $@
  48. .sh:
  49. sed <$@.sh 's:^dpkglibdir=/usr/lib/dpkg$$:dpkglibdir=$(dpkglibdir):' \
  50. | ../insert-version.pl >$@.new
  51. mv $@.new $@
  52. .gzuue:
  53. uudecode <$@.gzuue
  54. gunzip <$@.gz >$@.new
  55. test ! -x $@.gz || chmod +x $@.new
  56. rm $@.gz
  57. mv $@.new $@
  58. all: $(EXC) $(SBIN)
  59. clean:
  60. rm -f $(EXC) $(SBIN) core *.new
  61. distclean: clean
  62. rm -f Makefile *.orig *~ *.~* ./#*# i386elf-hello-world.gz
  63. install: all
  64. for f in $(EXC) ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  65. for f in $(MAN1) ; do $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1) ; done
  66. for f in $(SBIN) ; do $(INSTALL_PROGRAM) $$f $(sbindir)/$$f ; done
  67. for f in $(MAN8) ; do $(INSTALL_DATA) $$f.8 $(man8dir)/$$f.$(man8) ; done