Makefile.am 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. $(SGMLFILES) $(man_MANS)
  13. HTMLDIRS = internals.html
  14. SGMLFILES = internals.sgml
  15. HARDCOPY = internals.ps internals.html internals.info
  16. CLEANFILES = $(srcdir)/manuals-version.new
  17. DISTCLEANFILES = manuals-version
  18. INFOFILES = internals.info
  19. ## Rules
  20. #SUFFIXES = .html .sgml .ps .fig .monops
  21. .PHONY: all install-data-local uninstall-local dist-hook clean-local
  22. all:
  23. @echo Nothing built by default, use \`make internals\' to build docs
  24. internals.sgml: $(srcdir)/manuals-version
  25. internals: $(HARDCOPY)
  26. $(srcdir)/manuals-version: $(top_srcdir)/debian/changelog
  27. v=`dpkg-parsechangelog -l$< | sed -n 's/^Version: //p'` && \
  28. echo "<!entity manuals-version \"$$v\">" >$@.new
  29. echo "<!entity dpkg-version \"$(VERSION)\">" >>$@.new
  30. (cmp -s $@.new $@ || mv -f $@.new $@) && rm -f $@.new
  31. internals.texinfo: internals.sgml
  32. debiandoc2texinfo $<
  33. internals.ps: internals.sgml
  34. debiandoc2ps -1 $<
  35. internals.dvi: internals.sgml
  36. debiandoc2dvi $<
  37. internals.info: internals.sgml
  38. debiandoc2info $<
  39. internals.html: $(srcdir)/internals.sgml
  40. debiandoc2html $<
  41. database-structure.ps: database-structure.fig
  42. fig2dev -L ps -c -l _ -P <$< >ps
  43. mv -f ps $@
  44. database-structure.monops: database-structure.ps
  45. perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
  46. bind def$$::/$$1 {} bind def:' $< >ps
  47. mv -f ps $@
  48. install-data-local:
  49. $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
  50. $(INSTALL_DATA) $(top_srcdir)/debian/changelog $(DESTDIR)$(pkgdocdir)/changelog
  51. $(INSTALL_DATA) $(srcdir)/ChangeLog $(DESTDIR)$(pkgdocdir)/changelog.manuals
  52. internals-install: $(HARDCOPY)
  53. $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
  54. set -e; for f in internals.ps internals.html; do \
  55. cp -r $$f $(DESTDIR)$(pkgdocdir)/`basename $$f`; \
  56. done
  57. $(mkinstalldirs) $(DESTDIR)$(infodir)
  58. $(INSTALL_DATA) internals.info $(DESTDIR)$(infodir)
  59. doc-clean:
  60. -$(RM) *.{aux,cp,dvi,fn,ky,log,pg,toc,tp,vr,bak}
  61. -$(RM) internals.{FN,fns,sgmls,texi*,info*}
  62. -$(RM) manuals-version*
  63. ## End of file.