diff options
author | Roger Leigh <rleigh@debian.org> | 2008-10-26 16:11:41 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2008-10-26 16:11:41 +0000 |
commit | dfae5860833782af557deb35e286d7e186fe3cf5 (patch) | |
tree | e3b4282ae08e120f78cd0c097f7cb3b570e94da2 /doc/Makefile.am | |
parent | 3b59bb0a607ec27ea60f07d1cd5d1bbb4483c832 (diff) |
Imported Upstream version 4.3.99+cvs20050702
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r-- | doc/Makefile.am | 189 |
1 files changed, 44 insertions, 145 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 053a189..dde0386 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.27.2.3 2002/05/11 23:07:16 rleigh Exp $ +## $Id: Makefile.am,v 1.41 2005/04/19 01:31:03 rlk Exp $ ## Copyright (C) 2000 Roger Leigh ## ## This program is free software; you can redistribute it and/or modify @@ -23,171 +23,70 @@ AUTOMAKE_OPTIONS = 1.4 gnu MAINT_CHARSET = latin1 -SUBDIRS = users_guide +SUBDIRS = developer users_guide +include $(top_srcdir)/scripts/global.mk -## Variables - -MANUAL = gimpprint -HTMLDIR = manual-html -DOCS = $(MANUAL).dvi $(MANUAL).ps html-stamp - -IMAGES = \ - print-color.png \ - print-main.png \ - print-setup.png - -EPS_IMAGES = $(addsuffix .eps,$(basename $(IMAGES))) -TEXT_IMAGES = $(addsuffix .txt,$(basename $(IMAGES))) - -if MAINTAINER_MODE -MAINT_MODE = true -else -MAINT_MODE = false -endif - -USER_GUIDE = $(MANUAL).ps html +## Variables -STANDARD_TARGETS=@USER_GUIDE@ +docdir = $(datadir)/doc/$(PACKAGE) +## Rules if MAINTAINER_MODE -ALL_LOCAL_TARGETS = docs +all-local: gutenprint-stamp gutenprintui2-stamp else -ALL_LOCAL_TARGETS = $(STANDARD_TARGETS) +all-local: endif +# Rerun doxygen whenever autogen is run +gutenprintui2: gutenprintui2-stamp +gutenprintui2-stamp: gutenprintui2.dox $(top_srcdir)/configure + $(RM) -rf gutenprintui2/html + $(DOXYGEN) gutenprintui2.dox + touch $@ -## Data - -info_TEXINFOS = gimpprint.texi - -gimpprint_TEXINFOS = overview.texi copying.texi gpl.texi introduction.texi using.texi functions.texi programs.texi problems.texi appendices.texi dither.texi weave.texi escp2.texi new-printer.texi indices.texi integrating.texi version.texi +gutenprint: gutenprint-stamp +gutenprint-stamp: gutenprint.dox $(top_srcdir)/configure + $(RM) -rf gutenprint/html + $(DOXYGEN) gutenprint.dox + touch $@ - -## Rules - -all-local: $(DOCS) - -docs: $(DOCS) - cd users_guide; $(MAKE) docs +docs: gutenprint-stamp + cd developer; $(MAKE) + cd users_guide; $(MAKE) ps: $(MANUAL).ps + cd developer; $(MAKE) ps cd users_guide; $(MAKE) ps pdf: $(MANUAL).pdf + cd developer; $(MAKE) pdf cd users_guide; $(MAKE) pdf - -TEXI2DVIFLAGS = -I $(srcdir) -gimpprint.dvi: $(EPS_IMAGES) $(addprefix $(srcdir)/,$(gimpprint_TEXINFOS) $(info_TEXINFOS)) - $(TEXI2DVI) $(TEXI2DVIFLAGS) $(srcdir)/gimpprint.texi - -%.eps: %.png - $(CONVERT) $< EPS2:$@ - -html: html-stamp +html: + cd developer; $(MAKE) html cd users_guide; $(MAKE) html -## Note the rather weird way of setting the exit status; this is because -## texi2html doesn't set the exit status. -html-stamp: $(addprefix $(srcdir)/,$(gimpprint_TEXINFOS) $(info_TEXINFOS)) - $(RM) -rf $(HTMLDIR)-tmp - mkdir $(HTMLDIR)-tmp - images="$(addprefix $(srcdir)/, $(IMAGES))"; \ - for image in $$images ; do \ - cp -p $$image $(HTMLDIR)-tmp ; \ - done - cd $(HTMLDIR)-tmp ; \ - $(TEXI2HTML) -menu -split_node -number -expandinfo \ - -I ../$(srcdir) ../$(srcdir)/$(MANUAL).texi 2>&1 - $(RM) -rf $(HTMLDIR) - mv $(HTMLDIR)-tmp $(HTMLDIR) - touch html-stamp - -$(MANUAL).ps: $(MANUAL).dvi - TEXPICTS=$(srcdir):. $(DVIPS) $< -o $@ - -$(MANUAL).pdf: $(MANUAL).dvi - TEXPICTS=$(srcdir):. $(DVIPDF) $< $@ - -install-data-local: $(STANDARD_TARGETS) - if test -n '$(STANDARD_TARGETS)' ; then \ - $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/doc ; \ - $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/doc/$(HTMLDIR) ; \ - if test -f $(MANUAL).ps ; then \ - $(INSTALL_DATA) $(MANUAL).ps $(DESTDIR)$(datadir)/$(PACKAGE)/doc ; \ - elif test -f $(srcdir)/$(MANUAL).ps ; then \ - $(INSTALL_DATA) $(srcdir)/$(MANUAL).ps $(DESTDIR)$(datadir)/$(PACKAGE)/doc ; \ - fi ; \ - if test -d $(HTMLDIR) ; then \ - HTMLSRCDIR="$(HTMLDIR)" ; \ - elif test -d $(srcdir)/$(HTMLDIR) ; then \ - HTMLSRCDIR="$(srcdir)/$(HTMLDIR)" ; \ - fi ; \ - for file in $$HTMLSRCDIR/* ; do \ - if test -f $$file ; then \ - $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/$(PACKAGE)/doc/$(HTMLDIR) ; \ - fi ; \ - done ; \ - fi - -dist-hook: html - for dir in $(HTMLDIR) ; do \ - if test -d $(srcdir)/$$dir ; then \ - mkdir $(distdir)/$$dir; \ - for dirfile in $(srcdir)/$$dir/*; do \ - if test -f $$dirfile ; then \ - cp -p $$dirfile $(distdir)/$$dir; \ - fi \ - done \ - fi \ - done - -CLEAN_MANUALS = \ - $(RM) -rf html-stamp $(HTMLDIR) ; \ - $(RM) -f $(MANUAL).pdf $(MANUAL).ps $(MANUAL).dvi ; \ - $(RM) -f $(EPS_IMAGES) - -clean-local: - if test $(srcdir) = '.' -a $(MAINT_MODE) = false ; then \ - echo 'clean-local: Not removing $(HTMLDIR)' ; \ - echo 'clean-local: Not removing $(MANUAL).pdf' ; \ - echo 'clean-local: Not removing $(MANUAL).ps' ; \ - echo 'clean-local: Not removing $(MANUAL).dvi' ; \ - echo 'clean-local: Not removing EPS figures' ; \ - else \ - $(CLEAN_MANUALS) ; \ - fi - -$(RM) -rf *.tex *.log *.aux *.gz *.out *.junk *.fot - -$(RM) -rf *.ky *.pg *.toc *.tp *.vr *.vrs - -$(RM) -rf $(HTMLDIR)-tmp - -veryclean: - $(MAKE) MAINT_MODE=true clean - -maintainer-clean-local: - $(CLEAN_MANUALS) - -# We duplicate mostlyclean-aminfo here because we do not want to remove -# the .dvi and .ps files that mostlyclean-aminfo wants to remove. The -# reason why is that we do not want make clean to force a rebuild of the -# doc, since users may not have the texinfo tools required to do so. -# Unfortunately, this generates a warning about overriding commands for -# mostlyclean-aminfo. -mostlyclean-aminfo: - -$(RM) -f gimpprint.aux gimpprint.cp gimpprint.cps \ - gimpprint.fn gimpprint.fns gimpprint.ky gimpprint.kys \ - gimpprint.log gimpprint.pg gimpprint.toc \ - gimpprint.tp gimpprint.tps gimpprint.vr gimpprint.vrs \ - gimpprint.op gimpprint.tr gimpprint.cv gimpprint.cn - ## Clean -MAINTAINERCLEANFILES = Makefile.in html-stamp - -EXTRA_DIST = $(DOCS) $(IMAGES) $(EPS_IMAGES) $(TEXT_IMAGES) FAQ.html README.maintaining - -.PHONY: html ps pdf docs clean-manuals +maintainer-clean-local: + $(RM) -r gutenprint + +MAINTAINERCLEANFILES = \ + Makefile.in \ + gutenprint-stamp + +EXTRA_DIST = \ + FAQ.html \ + README.maintaining \ + gutenprint.dox.in \ + gutenprintui2.dox.in \ + gutenprint \ + gutenprintui2 \ + gutenprint-stamp \ + gutenprintui2-stamp + +.PHONY: html ps pdf docs |