2000-12-30 15:36:24 +00:00
|
|
|
# Included by directories containing manuals.
|
|
|
|
# Expects the following to be defined:
|
|
|
|
# manualname
|
|
|
|
# htmlname
|
|
|
|
# sgml_files
|
|
|
|
# fig_files
|
|
|
|
# eps_files
|
|
|
|
# png_files
|
|
|
|
|
|
|
|
PDFFILES=$(manualname).pdf
|
|
|
|
PSFILES=$(manualname).ps
|
|
|
|
|
2001-01-07 13:58:57 +00:00
|
|
|
if HAVE_FIG2DEV_PNG
|
2001-01-14 22:25:43 +00:00
|
|
|
PNGS_TO_MAKE=$(png_files)
|
2001-01-02 01:33:01 +00:00
|
|
|
else
|
2001-01-14 22:25:43 +00:00
|
|
|
PNGS_TO_MAKE=
|
2001-01-02 01:33:01 +00:00
|
|
|
endif
|
2001-01-06 02:35:17 +00:00
|
|
|
|
2001-01-14 22:25:43 +00:00
|
|
|
$(manualname)/$(htmlname): $(sgml_files) $(PNGS_TO_MAKE)
|
2001-01-02 01:33:01 +00:00
|
|
|
if HAVE_DB2HTML
|
2000-12-30 15:36:24 +00:00
|
|
|
db2html $(manualname).sgml
|
2001-01-02 01:33:01 +00:00
|
|
|
else
|
2001-01-08 23:55:27 +00:00
|
|
|
@echo "Can't build $@: don't have db2html tool"
|
2001-01-02 01:33:01 +00:00
|
|
|
endif
|
2000-12-30 15:36:24 +00:00
|
|
|
|
|
|
|
$(manualname).pdf: $(manualname).ps
|
2001-01-02 01:33:01 +00:00
|
|
|
if HAVE_PS2PDF
|
|
|
|
@if [ -r $< ] ; then ps2pdf $< $@ ; fi
|
|
|
|
else
|
2001-01-08 23:55:27 +00:00
|
|
|
@echo "Can't build $@: don't have ps2pdf tool"
|
2001-01-02 01:33:01 +00:00
|
|
|
endif
|
2000-12-30 15:36:24 +00:00
|
|
|
|
2001-01-07 13:58:57 +00:00
|
|
|
if HAVE_FIG2DEV_EPS
|
2000-12-30 15:36:24 +00:00
|
|
|
$(manualname).ps: $(sgml_files) $(eps_files)
|
2001-01-02 01:33:01 +00:00
|
|
|
else
|
|
|
|
$(manualname).ps: $(sgml_files)
|
|
|
|
endif
|
2001-01-07 13:58:57 +00:00
|
|
|
if HAVE_DB2PS
|
2001-01-02 01:33:01 +00:00
|
|
|
@if [ -r $< ] ; then db2ps $(manualname).sgml ; fi
|
|
|
|
else
|
2001-01-08 23:55:27 +00:00
|
|
|
@echo "Can't build $@: don't have db2ps tool"
|
2001-01-02 01:33:01 +00:00
|
|
|
endif
|
2000-12-30 15:36:24 +00:00
|
|
|
|
|
|
|
images :
|
|
|
|
mkdir images
|
|
|
|
|
2001-01-07 13:58:57 +00:00
|
|
|
if HAVE_FIG2DEV_PNG
|
2000-12-30 15:36:24 +00:00
|
|
|
images/%.png : %.fig images
|
|
|
|
fig2dev -L png -s 16 $< $@
|
2001-01-07 13:58:57 +00:00
|
|
|
endif
|
2000-12-30 15:36:24 +00:00
|
|
|
|
2001-01-07 13:58:57 +00:00
|
|
|
if HAVE_FIG2DEV_EPS
|
2000-12-30 15:36:24 +00:00
|
|
|
images/%.eps : %.fig images
|
|
|
|
fig2dev -L eps -s 16 -m 0.5 $< $@
|
2001-01-07 13:58:57 +00:00
|
|
|
endif
|
2000-12-30 15:36:24 +00:00
|
|
|
|
|
|
|
$(manualname)/images:
|
2001-01-14 22:25:43 +00:00
|
|
|
@if [ -d $(manualname) ] ; then \
|
|
|
|
if [ -d images ] ; then \
|
|
|
|
ln -sf ../images $(manualname)/images ;\
|
|
|
|
fi \
|
|
|
|
fi
|
2000-12-30 15:36:24 +00:00
|
|
|
|
|
|
|
htmldocs: $(manualname)/$(htmlname) $(manualname)/images
|
|
|
|
pdfdocs: $(PDFFILES)
|
|
|
|
psdocs: $(PSFILES)
|
|
|
|
|
|
|
|
# Data to install, in the usual automake way
|
|
|
|
docdatadir = $(datadir)/gstreamer
|
|
|
|
docdata_DATA = $(PDFFILES) $(PSFILES)
|
|
|
|
|
2001-06-25 20:41:05 +00:00
|
|
|
htmlinst: htmldocs
|
2000-12-30 15:36:24 +00:00
|
|
|
@if [ -r $(manualname)/$(htmlname) ] ; then \
|
2000-12-31 13:55:33 +00:00
|
|
|
echo "Installing $(manualname)" ; \
|
2000-12-30 15:36:24 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname) ; \
|
2000-12-31 13:55:33 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname)/images ; \
|
2000-12-30 15:36:24 +00:00
|
|
|
$(INSTALL_DATA) $(manualname)/*.html $(DESTDIR)$(docdatadir)/$(manualname) ; \
|
2000-12-31 14:22:59 +00:00
|
|
|
for a in "x" $(png_files); do \
|
|
|
|
if [ "x$$a" != "xx" ] ; then \
|
2001-01-02 01:33:01 +00:00
|
|
|
if [ -r $$a ] ; then \
|
2000-12-31 14:22:59 +00:00
|
|
|
$(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; \
|
2001-01-02 01:33:01 +00:00
|
|
|
fi; fi; done \
|
2000-12-30 15:36:24 +00:00
|
|
|
else \
|
|
|
|
if [ -r $(srcdir)/$(manualname)/$(htmlname) ] ; then \
|
2000-12-31 13:55:33 +00:00
|
|
|
echo "Installing $(srcdir)/$(manualname)" ; \
|
2000-12-30 15:36:24 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname) ; \
|
2000-12-31 13:55:33 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname)/images ; \
|
2000-12-30 15:36:24 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$(manualname)/*.html $(DESTDIR)$(docdatadir)/$(manualname) ; \
|
2000-12-31 14:22:59 +00:00
|
|
|
for a in "x" $(png_files); do \
|
|
|
|
if [ "x$$a" != "xx" ] ; then \
|
2001-01-02 01:33:01 +00:00
|
|
|
if [ -r $$a ] ; then \
|
2000-12-31 14:22:59 +00:00
|
|
|
$(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; \
|
2001-01-02 01:33:01 +00:00
|
|
|
fi; fi; done \
|
2000-12-30 15:36:24 +00:00
|
|
|
else \
|
|
|
|
echo "NOT installing HTML documentation: not present, and can't generate" ; \
|
|
|
|
fi \
|
|
|
|
fi
|
|
|
|
|
|
|
|
htmluninst:
|
|
|
|
$(RM) -rf $(DESTDIR)$(docdatadir)/$(manualname)
|
|
|
|
|
|
|
|
all-local: htmldocs pdfdocs psdocs
|
|
|
|
clean-local:
|
|
|
|
$(RM) -rf $(manualname)/ $(manualname).junk/ images/*.eps images/*.png *.eps *.png *.ps *.pdf *.aux *.dvi *.log *.tex DBTOHTML_OUTPUT_DIR*
|
|
|
|
install-data-local: htmlinst
|
|
|
|
uninstall-local: htmluninst
|
|
|
|
|