Makefile.am 3.5 KB

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