Makefile.in 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. SGMLDOCSTAMPS= programmer.html-stamp policy.html-stamp
  33. # Files folded into manuals
  34. OBSOLETEDOCS= descriptions.txt upgrades+errors.txt \
  35. maintainer-script-args.txt virtual-dependencies.txt \
  36. auto-deconfiguration.txt dependency-ordering.txt \
  37. disappear-replace.txt diversions.text \
  38. essential-flag.txt version-ordering.txt
  39. all: $(DPKGDOCS) $(SGMLDOCSTAMPS)
  40. manuals-version: changelog Makefile
  41. v=`dpkg-parsechangelog -lchangelog | sed -n 's/^Version: //p'` && \
  42. echo "<!entity manuals-version \"$$v\">" >$@.new
  43. d=`pwd | sed -e 's,/doc$$,,; s,^.*dpkg-\([0-9.]*\),\1,'` && \
  44. echo "<!entity dpkg-version \"$$d\">" >>$@.new
  45. mv $@.new $@
  46. %.html-stamp: %.sgml manuals-version
  47. rm -rf $*.html
  48. debiandoc2html $<
  49. touch $@
  50. guidelines.info: guidelines.texi
  51. $(MAKEINFO) $(srcdir)/guidelines.texi
  52. database-structure.ps: database-structure.fig
  53. fig2dev -L ps -c -l _ -P <database-structure.fig >ps
  54. mv ps database-structure.ps
  55. database-structure.monops: database-structure.ps
  56. perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
  57. bind def$$:/$$1 {} bind def:' database-structure.ps >ps
  58. mv ps database-structure.monops
  59. clean:
  60. rm -f $(SGMLDOCSTAMPS)
  61. rm -f database-structure.ps database-structure.monops ps
  62. rm -f *.{aux,cp,dvi,fn,ky,log,pg,toc,tp,vr,bak}
  63. rm -f guidelines.info* *.sasp*
  64. rm -rf {programmer,policy}.html
  65. distclean:
  66. rm -f Makefile *.orig *~ *.~* ./#*#
  67. install: all
  68. $(INSTALL_DATA) deb.5 $(man5dir)/deb.$(man5)
  69. $(INSTALL_DATA) deb-old.5 $(man5dir)/deb-old.$(man5)
  70. $(INSTALL_DATA) deb-control.5 $(man5dir)/deb-control.$(man5)
  71. set -e; for f in $(SGMLDOCSTAMPS) ; do \
  72. g=`echo $$f | sed -e 's/-stamp$$//'` ; \
  73. cp -r $$g $(dpkgdocdir)/$$g ; \
  74. done
  75. $(INSTALL_DATA) developer-keys.pgp $(dpkgdocdir)/.
  76. $(INSTALL_DATA) ../debian/changelog $(dpkgdocdir)/changelog.dpkg
  77. $(INSTALL_DATA) changelog $(dpkgdocdir)/changelog.manuals