Makefile.in 2.7 KB

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