* doc-gnome/C/Makefile.am: Fixed *clean targets. Use temporary

directory for document processing. Comment changes. gmc.ps and
        gmc.pdf now generated from gmc.dvi.
This commit is contained in:
Pavel Roskin 2000-09-23 07:10:14 +00:00
parent 49a540ba42
commit 560462fb09
2 changed files with 35 additions and 12 deletions

View File

@ -1,5 +1,9 @@
2000-09-23 Pavel Roskin <proski@gnu.org>
* doc-gnome/C/Makefile.am: Fixed *clean targets. Use temporary
directory for document processing. Comment changes. gmc.ps and
gmc.pdf now generated from gmc.dvi.
* configure: Always include Make.common as file, otherwise
"make distclean" breaks.
* edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,

View File

@ -22,6 +22,10 @@ SGML_FILES = gmc.sgml
EXTRA_DIST = topic.dat $(SGML_FILES) $(DISTFIGS)
MOSTLYCLEANFILES = *.tex *.log *.aux
CLEANFILES = gmc.dvi gmc.ps gmc.pdf gmc.rtf
DISTCLEANFILES = gmc.sgm
$(srcdir)/index.html: @MAINT@ $(SGML_FILES)
@MAINT@ db2html $(srcdir)/gmc.sgml && \
@MAINT@ rm -f $(srcdir)/*.html $(srcdir)/*.css && \
@ -42,18 +46,33 @@ uninstall-local: $(srcdir)/index.html
dvi-local: gmc.dvi
# "make distcheck" (automake-1.4) requires that *.dvi are created in the
# build directory, since the source directory is read-only
# However, db2dvi (docbook-3.1) doesn't allow redirecting the output. Sigh.
# For dvi to be useful you also need to convert *.png to *.eps
# "make distcheck" (automake-1.4a) requires that *.dvi are created in
# the build directory, since the source directory is read-only.
# However, db2dvi (docbook-3.1) doesn't allow redirecting the output.
# So let's copy gmc.sgml to a temp directory. Now *.dvi goes to ".",
# but *.rtf remains in "tmp", so let's try to copy it from "tmp" -
# maybe future versions of docbook will be more consistent.
gmc.dvi: $(srcdir)/gmc.sgml
if test $(srcdir) != .; then \
cp $(srcdir)/gmc.sgml gmc.sgml; \
fi
db2dvi gmc.sgml
mkdir tmpdvi
cp $(srcdir)/gmc.sgml tmpdvi
db2dvi tmpdvi/gmc.sgml
if test -f tmpdvi/gmc.dvi; then \
mv -f tmpdvi/gmc.dvi gmc.dvi; \
else :; fi
rm -rf tmpdvi
gmc.ps: $(srcdir)/gmc.sgml
db2ps gmc.sgml
gmc.rtf: $(srcdir)/gmc.sgml
mkdir tmprtf
cp $(srcdir)/gmc.sgml tmprtf
db2rtf tmprtf/gmc.sgml
if test -f tmprtf/gmc.rtf; then \
mv -f tmprtf/gmc.rtf gmc.rtf; \
else :; fi
rm -rf tmprtf
gmc.rtf: $(srcdir)/gmc.sgml
db2rtf gmc.sgml
# FIXME: for gmc.ps and gmc.pdf we also need to convert *.png to *.eps
gmc.ps: gmc.dvi
dvips gmc.dvi -o gmc.ps
gmc.pdf: gmc.dvi
dvipdf gmc.dvi gmc.pdf