Makefile.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
  2. # Copyright (C) 1994,1995 Ian Jackson <iwj10@cus.cam.ac.uk>
  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. exec_prefix = $(prefix)
  21. docdir = $(prefix)/doc
  22. devdocdir = $(docdir)/dpkg
  23. copyingfile = $(docdir)/copyright/dpkg
  24. infodir = $(prefix)/info
  25. bindir = $(exec_prefix)/bin
  26. sbindir = $(exec_prefix)/sbin
  27. libdir = $(prefix)/lib
  28. dpkglibdir = $(libdir)/dpkg
  29. methodsdir = $(dpkglibdir)/methods
  30. parsechangelogdir = $(dpkglibdir)/parsechangelog
  31. elispdir = $(libdir)/emacs/site-lisp
  32. datadir = /var/lib/dpkg
  33. methodsdatadir = $(datadir)/methods
  34. methodsmnt = $(datadir)/methods/mnt
  35. pinfodir = $(datadir)/info
  36. pupdatesdir = $(datadir)/updates
  37. altsdatadir = $(datadir)/alternatives
  38. partsdir = $(datadir)/parts
  39. mandir = $(prefix)/man
  40. man1dir = $(mandir)/man1
  41. man5dir = $(mandir)/man5
  42. man8dir = $(mandir)/man8
  43. man1 = 1
  44. man5 = 5
  45. man8 = 8
  46. etcdir= /etc
  47. altsetcdir = $(etcdir)/alternatives
  48. BOURNESHELL = /bin/sh
  49. INSTALL = @INSTALL@
  50. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  51. INSTALL_DATA = @INSTALL_DATA@
  52. CC = @CC@
  53. CFLAGS = @CFLAGS@ @CWARNS@ $(XCFLAGS)
  54. LDFLAGS = $(XLDFLAGS)
  55. ALL_CFLAGS = -I../include -I.. @DEFS@ $(CFLAGS)
  56. SUBDIRS = lib main dpkg-deb split md5sum scripts doc include dselect methods
  57. PORTABLEDIRS = lib dpkg-deb split md5sum
  58. .SUFFIXES: .c .o
  59. .c.o:
  60. $(CC) $(ALL_CFLAGS) -c $<
  61. all: version
  62. set -e; for d in $(SUBDIRS) ; do \
  63. cd $$d ; \
  64. $(MAKE) 'CC=$(CC)' 'LDFLAGS=$(LDFLAGS)' 'XLIBS=$(XLIBS)'; \
  65. cd .. ; \
  66. done
  67. install: all
  68. $(BOURNESHELL) $(srcdir)/mkinstalldirs $(bindir) $(sbindir) \
  69. $(man1dir) $(man5dir) $(man8dir) $(devdocdir) $(infodir) \
  70. $(libdir) $(dpkglibdir) $(methodsdir) $(parsechangelogdir) \
  71. $(elispdir) $(datadir) $(pinfodir) $(pupdatesdir) \
  72. $(methodsdatadir) $(methodsmnt) $(altsdatadir) \
  73. $(altsetcdir) $(partsdir)
  74. set -e; for d in $(SUBDIRS) ; do \
  75. cd $$d ; \
  76. $(MAKE) 'CC=$(CC)' 'LDFLAGS=$(LDFLAGS)' 'XLIBS=$(XLIBS)' \
  77. install ; \
  78. cd .. ; \
  79. done
  80. $(INSTALL_DATA) COPYING $(copyingfile)
  81. portable: version
  82. set -e; for d in lib dpkg-deb split md5sum ; do \
  83. cd $$d ; \
  84. $(MAKE) 'CC=$(CC)' 'LDFLAGS=$(LDFLAGS)' 'XLIBS=$(XLIBS)' ; \
  85. cd .. ; \
  86. done
  87. install-portable: portable
  88. $(BOURNESHELL) $(srcdir)/mkinstalldirs $(bindir) \
  89. $(man1dir) $(man8dir) $(libdir) $(dpkglibdir)
  90. set -e; for d in $(PORTABLEDIRS) ; do \
  91. cd $$d ; \
  92. $(MAKE) 'CC=$(CC)' 'LDFLAGS=$(LDFLAGS)' 'XLIBS=$(XLIBS)' \
  93. install ; \
  94. cd .. ; \
  95. done
  96. # $(INSTALL_DATA) COPYING $(copyingfile)
  97. autoconf:
  98. autoheader
  99. autoconf
  100. clean:
  101. set -e; for d in $(SUBDIRS) ; do \
  102. cd $$d ; \
  103. $(MAKE) clean ; \
  104. cd .. ; \
  105. done
  106. rm -f core version.h.new
  107. distclean: clean
  108. set -e; for d in $(SUBDIRS) ; do \
  109. cd $$d ; \
  110. $(MAKE) distclean ; \
  111. cd .. ; \
  112. done
  113. rm -f Makefile *.orig *~ *.~* ./#*#
  114. rm -f config.h config.status install config.cache config.log
  115. version:
  116. perl insert-version.pl <version.h >version.h.new
  117. cmp -s version.h.new version.h || mv version.h.new version.h