Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ## Process this file with automake to produce a Makefile.in
  2. AUTOMAKE_OPTIONS = 1.1 foreign
  3. ## Directory definitions
  4. docdir = $(prefix)/doc
  5. pkgdocdir = $(docdir)/@PACKAGE@
  6. ## Automake variables
  7. man_MANS = deb.5 deb-old.5 deb-control.5
  8. pkgdoc_DATA =
  9. EXTRA_DIST = database-structure.fig changelog \
  10. manuals-version \
  11. $(SGMLFILES) $(man_MANS) \
  12. texinfo.dtd \
  13. texinfo.texi_mapping texinfo.debian_mapping
  14. HTMLDOCSTAMPS = internals.html-stamp
  15. HTMLDIRS = internals.html
  16. SGMLFILES = internals.sgml
  17. HARDCOPY = internals.ps internals.dvi
  18. CLEANFILES = $(srcdir)/manuals-version.new
  19. DISTCLEANFILES =
  20. INFOFILES = internals.info
  21. ## Rules
  22. SUFFIXES = .html-stamp .sgml .ps .fig .monops
  23. .PHONY: all install-data-local uninstall-local dist-hook clean-local
  24. all: $(HTMLDOCSTAMPS) $(HARDCOPY) $(INFOFILES)
  25. $(srcdir)/manuals-version: $(top_srcdir)/debian/changelog
  26. v=`dpkg-parsechangelog -l$< | sed -n 's/^Version: //p'` && \
  27. echo "<!entity manuals-version \"$$v\">" >$@.new
  28. echo "<!entity dpkg-version \"$(VERSION)\">" >>$@.new
  29. (cmp -s $@.new $@ || mv -f $@.new $@) && rm -f $@.new
  30. internals.sgmls: internals.sgml texinfo.dtd manuals-version
  31. nsgmls $< > $@ || ($(RM) $@ && false)
  32. internals.texi: internals.sgmls texinfo.texi_mapping
  33. sgmlsasp $(srcdir)/texinfo.texi_mapping < $< > $@ || ($(RM) $@ && false)
  34. perl -pi -e 's/printindex FN/printindex fn/' $@ || ($(RM) $@ && false)
  35. internals.ps: internals.dvi
  36. dvips -t letter -o $@ $^
  37. internals.dvi: internals.texi
  38. texi2dvi $^
  39. internals.info: internals.texi
  40. makeinfo $^
  41. internals.html-stamp: internals.texi
  42. -$(RM) -r $*.html*
  43. mkdir $*.html
  44. (cd $*.html && texi2html -monolithic ../$<)
  45. ln -s internals.html $*.html/index.html
  46. touch $@
  47. database-structure.ps: database-structure.fig
  48. fig2dev -L ps -c -l _ -P <$< >ps
  49. mv -f ps $@
  50. database-structure.monops: database-structure.ps
  51. perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
  52. bind def$$::/$$1 {} bind def:' $< >ps
  53. mv -f ps $@
  54. install-data-local: $(HTMLDOCSTAMPS)
  55. $(mkinstalldirs) $(pkgdocdir)
  56. $(INSTALL_DATA) $(top_srcdir)/debian/changelog $(pkgdocdir)/changelog
  57. $(INSTALL_DATA) $(srcdir)/changelog $(pkgdocdir)/changelog.manuals
  58. set -e; for f in $^; do \
  59. g=`echo $$f | sed -e 's/-stamp$$//'`; \
  60. cp -r $$g $(pkgdocdir)/`basename $$g`; \
  61. done
  62. uninstall-local:
  63. -$(RM) $(pkgdocdir)/changelog.manuals $(pkgdocdir)/changelog
  64. -cd $(pkgdocdir) && rm -rf $(HTMLDIRS)
  65. dist-hook: $(HTMLDOCSTAMPS) $(HARDCOPY) internals.sgmls internals.texi internals.info
  66. cp -p $^ $(distdir)
  67. for f in `echo $^ | tr ' \t' '\n\n' | sed -ne 's:.html-stamp::gp'`; do set -e; \
  68. $(RM) -r $(distdir)/`basename $$f.html`; \
  69. mkdir $(distdir)/`basename $$f.html`; \
  70. cp -p $$f.html/* $(distdir)/`basename $$f.html`; \
  71. done
  72. $(RM) -r $(distdir)/obsolete
  73. cp -rp $(srcdir)/obsolete $(distdir)/
  74. cp -p $(HARDCOPY) $(distdir)/
  75. maintainer-clean-local: doc-clean
  76. $(RM) manuals-version
  77. -$(RM) $(srcdir)/Makefile.in
  78. doc-clean:
  79. -$(RM) *.{aux,cp,dvi,fn,ky,log,pg,toc,tp,vr,bak}
  80. -$(RM) internals.{FN,fns,sgmls,texi,info*}
  81. -$(RM) -r {packaging,internals}.{texi,html-stamp,text,ps,lout}
  82. -$(RM) -r {packaging,internals}.html
  83. -$(RM) manuals-version*
  84. ## End of file.