Makefile.in 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. infodir = $(prefix)/info
  21. mandir = $(prefix)/man
  22. man5dir = $(mandir)/man5
  23. man5 = 5
  24. docdir = $(prefix)/doc
  25. dpkgdocdir = $(docdir)/dpkg
  26. DIST = Makefile.in $(SRC) $(MAN)
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30. MAKEINFO = makeinfo
  31. TEXI2DVI = texi2dvi
  32. DPKGDOCS= developer-keys.pgp
  33. SGMLDOCS= programmer policy
  34. # Files folded into manuals
  35. OBSOLETEDOCS= descriptions.txt upgrades+errors.txt \
  36. maintainer-script-args.txt virtual-dependencies.txt \
  37. auto-deconfiguration.txt dependency-ordering.txt \
  38. disappear-replace.txt diversions.text \
  39. essential-flag.txt version-ordering.txt
  40. all: $(DPKGDOCS) $(SGMLDOCS)
  41. $(SGMLDOCS):
  42. debiandoc2html $@.sgml
  43. touch $@
  44. guidelines.info: guidelines.texi
  45. $(MAKEINFO) $(srcdir)/guidelines.texi
  46. database-structure.ps: database-structure.fig
  47. fig2dev -L ps -c -l _ -P <database-structure.fig >ps
  48. mv ps database-structure.ps
  49. database-structure.monops: database-structure.ps
  50. perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
  51. bind def$$:/$$1 {} bind def:' database-structure.ps >ps
  52. mv ps database-structure.monops
  53. clean:
  54. rm -f $(SGMLDOCS)
  55. rm -f database-structure.ps database-structure.monops ps
  56. rm -f *.{aux,cp,dvi,fn,ky,log,pg,toc,tp,vr,bak}
  57. rm -f guidelines.info* *.sasp*
  58. rm -rf {programmer,policy}.html
  59. distclean:
  60. rm -f Makefile *.orig *~ *.~* ./#*#
  61. install: all
  62. $(INSTALL_DATA) deb.5 $(man5dir)/deb.$(man5)
  63. $(INSTALL_DATA) deb-old.5 $(man5dir)/deb-old.$(man5)
  64. $(INSTALL_DATA) deb-control.5 $(man5dir)/deb-control.$(man5)
  65. set -e; for f in $(SGMLDOCS) ; do \
  66. cp -r $$f.html $(dpkgdocdir)/$$f.html ; \
  67. done
  68. set -e; for d in $(DPKGDOCS) ; do \
  69. $(INSTALL_DATA) $$d $(dpkgdocdir)/$$d ; \
  70. done