Makefile.in 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
  2. # Copyright (C) 1994,1995,1996 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. dpkg-scanpackages
  38. SBIN = update-rc.d start-stop-daemon update-alternatives install-info \
  39. dpkg-scanpackages dpkg-divert cleanup-info
  40. INSTALL = @INSTALL@
  41. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  42. INSTALL_DATA = @INSTALL_DATA@
  43. .SUFFIXES: .pl .sh .gzuue
  44. .pl:
  45. sed <$@.pl 's:^#!/usr/bin/perl:#!$(perlpath):' \
  46. | ../insert-version.pl >$@.new
  47. chmod +x $@.new
  48. mv $@.new $@
  49. .sh:
  50. sed <$@.sh 's:^dpkglibdir=/usr/lib/dpkg$$:dpkglibdir=$(dpkglibdir):' \
  51. | ../insert-version.pl >$@.new
  52. mv $@.new $@
  53. .gzuue:
  54. uudecode <$@.gzuue
  55. gunzip <$@.gz >$@.new
  56. test ! -x $@.gz || chmod +x $@.new
  57. rm $@.gz
  58. mv $@.new $@
  59. all: $(EXC) $(SBIN)
  60. clean:
  61. rm -f $(EXC) $(SBIN) core *.new
  62. distclean: clean
  63. rm -f Makefile *.orig *~ *.~* ./#*# i386elf-hello-world.gz
  64. install: all
  65. for f in $(EXC) ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  66. for f in $(MAN1) ; do $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1) ; done
  67. for f in $(SBIN) ; do $(INSTALL_PROGRAM) $$f $(sbindir)/$$f ; done
  68. for f in $(MAN8) ; do $(INSTALL_DATA) $$f.8 $(man8dir)/$$f.$(man8) ; done