Makefile.in 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. parsechangelogdir = $(dpkglibdir)/parsechangelog
  32. elispdir = $(libdir)/emacs/site-lisp
  33. etcdir= /etc
  34. altsetcdir = $(etcdir)/alternatives
  35. perlpath = @perlpath@
  36. MAN1 = dpkg-name dpkg-source 822-date
  37. LSMAN = dpkg-source.$(man1)
  38. LSMANL= dpkg-gencontrol dpkg-genchanges dpkg-buildpackage \
  39. dpkg-distaddfile dpkg-parsechangelog dpkg-shlibdeps
  40. EXC = dpkg-name dpkg-source dpkg-genchanges dpkg-gencontrol dpkg-shlibdeps \
  41. dpkg-buildpackage dpkg-parsechangelog dpkg-distaddfile 822-date \
  42. dpkg-scanpackages
  43. MAN8 = update-rc.d start-stop-daemon update-alternatives install-info \
  44. dpkg-scanpackages
  45. SBIN = update-rc.d start-stop-daemon update-alternatives install-info \
  46. dpkg-divert cleanup-info
  47. LIB = controllib.pl
  48. ELISP = debian-changelog-mode.el
  49. CHGLGS= cl-debian
  50. INSTALL = @INSTALL@
  51. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  52. INSTALL_DATA = @INSTALL_DATA@
  53. .SUFFIXES: .pl .sh .gzuue
  54. .pl:
  55. sed <$@.pl 's:^#!/usr/bin/perl:#!$(perlpath):; \
  56. s:\$dpkglibdir= "\.":\$dpkglibdir= "$(dpkglibdir)":' \
  57. | ../insert-version.pl >$@.new
  58. chmod +x $@.new
  59. mv $@.new $@
  60. .sh:
  61. sed <$@.sh 's:^dpkglibdir=/usr/lib/dpkg$$:dpkglibdir=$(dpkglibdir):' \
  62. | ../insert-version.pl >$@.new
  63. chmod +x $@.new
  64. mv $@.new $@
  65. .gzuue:
  66. uudecode <$@.gzuue
  67. gunzip <$@.gz >$@.new
  68. test ! -x $@.gz || chmod +x $@.new
  69. rm $@.gz
  70. mv $@.new $@
  71. all: $(EXC) $(SBIN) $(CHGLGS)
  72. clean:
  73. rm -f $(EXC) $(SBIN) $(CHGLGS) core *.new
  74. distclean: clean
  75. rm -f Makefile *.orig *~ *.~* ./#*# i386elf-hello-world.gz
  76. install: all
  77. for f in $(EXC) ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  78. for f in $(MAN1) ; do $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1) ; done
  79. for f in $(LSMANL) ; do ln -s $(LSMAN) $(man1dir)/$$f.$(man1) ; done
  80. for f in $(SBIN) ; do $(INSTALL_PROGRAM) $$f $(sbindir)/$$f ; done
  81. for f in $(MAN8) ; do $(INSTALL_DATA) $$f.8 $(man8dir)/$$f.$(man8) ; done
  82. for f in $(LIB) ; do $(INSTALL_DATA) $$f $(dpkglibdir)/$$f ; done
  83. for f in $(ELISP) ; do $(INSTALL_DATA) $$f $(elispdir)/$$f ; done
  84. for f in $(CHGLGS) ; do $(INSTALL_PROGRAM) $$f \
  85. $(dpkglibdir)/parsechangelog/`echo $$f | sed -e 's/^cl-//'` ; \
  86. done