|
Packit |
7e982e |
#
|
|
Packit |
7e982e |
# Copyright (c) 2006 Thorsten Kukuk <kukuk@thkukuk.de>
|
|
Packit |
7e982e |
#
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
CLEANFILES = Linux-PAM_ADG.fo *~
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
EXTRA_DIST = $(XMLS)
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
XMLS = Linux-PAM_ADG.xml $(shell ls $(srcdir)/pam_*.xml)
|
|
Packit |
7e982e |
DEP_XMLS = $(shell ls $(top_srcdir)/doc/man/pam_*.xml)
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
if ENABLE_REGENERATE_MAN
|
|
Packit |
7e982e |
MAINTAINERCLEANFILES = Linux-PAM_ADG.txt Linux-PAM_ADG.pdf html/*.html
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
all: Linux-PAM_ADG.txt html/Linux-PAM_ADG.html Linux-PAM_ADG.pdf
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
Linux-PAM_ADG.pdf: $(XMLS) $(DEP_XMLS)
|
|
Packit |
7e982e |
if ENABLE_GENERATE_PDF
|
|
Packit |
7e982e |
$(XMLLINT) --nonet --xinclude --postvalid --noent --noout $<
|
|
Packit |
7e982e |
$(XSLTPROC) --stringparam generate.toc "book toc" \
|
|
Packit |
7e982e |
--stringparam section.autolabel 1 \
|
|
Packit |
7e982e |
--stringparam section.label.includes.component.label 1 \
|
|
Packit |
7e982e |
--stringparam toc.max.depth 3 --xinclude --nonet \
|
|
Packit |
7e982e |
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $< > Linux-PAM_ADG.fo
|
|
Packit |
7e982e |
$(FO2PDF) Linux-PAM_ADG.fo $@
|
|
Packit |
7e982e |
else
|
|
Packit |
7e982e |
echo "No fo2pdf processor installed, skip PDF generation"
|
|
Packit |
7e982e |
endif
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
Linux-PAM_ADG.txt: $(XMLS) $(DEP_XMLS)
|
|
Packit |
7e982e |
$(XMLLINT) --nonet --xinclude --postvalid --noent --noout $<
|
|
Packit |
7e982e |
$(XSLTPROC) --stringparam generate.toc "book toc" \
|
|
Packit |
7e982e |
--stringparam section.autolabel 1 \
|
|
Packit |
7e982e |
--stringparam section.label.includes.component.label 1 \
|
|
Packit |
7e982e |
--stringparam toc.max.depth 3 --xinclude --nonet \
|
|
Packit |
7e982e |
http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< | $(BROWSER) > $@
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
html/Linux-PAM_ADG.html: $(XMLS) $(DEP_XMLS)
|
|
Packit |
7e982e |
@test -d html || mkdir -p html
|
|
Packit |
7e982e |
$(XMLLINT) --nonet --xinclude --postvalid --noent --noout $<
|
|
Packit |
7e982e |
$(XSLTPROC) --stringparam base.dir html/ \
|
|
Packit |
7e982e |
--stringparam root.filename Linux-PAM_ADG \
|
|
Packit |
7e982e |
--stringparam use.id.as.filename 1 \
|
|
Packit |
7e982e |
--stringparam chunk.first.sections 1 \
|
|
Packit |
7e982e |
--stringparam section.autolabel 1 \
|
|
Packit |
7e982e |
--stringparam section.label.includes.component.label 1 \
|
|
Packit |
7e982e |
--stringparam toc.max.depth 3 --xinclude --nonet \
|
|
Packit |
7e982e |
--stringparam chunker.output.encoding UTF-8 \
|
|
Packit |
7e982e |
http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl $<
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
distclean-local:
|
|
Packit |
7e982e |
-rm -rf html Linux-PAM_ADG.txt Linux-PAM_ADG.pdf
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
endif
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
install-data-local:
|
|
Packit |
7e982e |
$(mkinstalldirs) $(DESTDIR)$(docdir)
|
|
Packit |
7e982e |
$(mkinstalldirs) $(DESTDIR)$(pdfdir)
|
|
Packit |
7e982e |
$(mkinstalldirs) $(DESTDIR)$(htmldir)
|
|
Packit |
7e982e |
if test -f html/Linux-PAM_ADG.html; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) html/Linux-PAM_ADG.html html/adg-*.html \
|
|
Packit |
7e982e |
$(DESTDIR)$(htmldir)/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/html/Linux-PAM_ADG.html; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) $(srcdir)/html/Linux-PAM_ADG.html \
|
|
Packit |
7e982e |
$(srcdir)/html/adg-*.html \
|
|
Packit |
7e982e |
$(DESTDIR)$(htmldir)/; \
|
|
Packit |
7e982e |
fi
|
|
Packit |
7e982e |
if test -f Linux-PAM_ADG.txt; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) Linux-PAM_ADG.txt $(DESTDIR)$(docdir)/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/Linux-PAM_ADG.txt; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.txt \
|
|
Packit |
7e982e |
$(DESTDIR)$(docdir)/; \
|
|
Packit |
7e982e |
fi
|
|
Packit |
7e982e |
if test -f Linux-PAM_ADG.pdf; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) Linux-PAM_ADG.pdf $(DESTDIR)$(pdfdir)/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/Linux-PAM_ADG.pdf; then \
|
|
Packit |
7e982e |
$(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.pdf \
|
|
Packit |
7e982e |
$(DESTDIR)$(pdfdir)/; \
|
|
Packit |
7e982e |
fi
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
uninstall-local:
|
|
Packit |
7e982e |
-rm $(DESTDIR)$(htmldir)/Linux-PAM_ADG.html
|
|
Packit |
7e982e |
-rm $(DESTDIR)$(htmldir)/adg-*.html
|
|
Packit |
7e982e |
-rm $(DESTDIR)$(docdir)/Linux-PAM_ADG.txt
|
|
Packit |
7e982e |
-rm $(DESTDIR)$(pdfdir)/Linux-PAM_ADG.pdf
|
|
Packit |
7e982e |
|
|
Packit |
7e982e |
releasedocs: all
|
|
Packit |
7e982e |
$(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html
|
|
Packit |
7e982e |
if test -f html/Linux-PAM_ADG.html; then \
|
|
Packit |
7e982e |
cp -ap html/Linux-PAM_ADG.html html/adg-*.html \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/html/Linux-PAM_ADG.html; then \
|
|
Packit |
7e982e |
cp -ap $(srcdir)/html/Linux-PAM_ADG.html \
|
|
Packit |
7e982e |
$(srcdir)/html/adg-*.html \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/; \
|
|
Packit |
7e982e |
else exit 1; \
|
|
Packit |
7e982e |
fi
|
|
Packit |
7e982e |
if test -f Linux-PAM_ADG.txt; then \
|
|
Packit |
7e982e |
cp -p Linux-PAM_ADG.txt \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/Linux-PAM_ADG.txt; then \
|
|
Packit |
7e982e |
cp -p $(srcdir)/Linux-PAM_ADG.txt \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/; \
|
|
Packit |
7e982e |
else exit 1; \
|
|
Packit |
7e982e |
fi
|
|
Packit |
7e982e |
if test -f Linux-PAM_ADG.pdf; then \
|
|
Packit |
7e982e |
cp -p Linux-PAM_ADG.pdf \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/; \
|
|
Packit |
7e982e |
elif test -f $(srcdir)/Linux-PAM_ADG.pdf; then \
|
|
Packit |
7e982e |
cp -p $(srcdir)/Linux-PAM_ADG.pdf \
|
|
Packit |
7e982e |
$(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/; \
|
|
Packit |
7e982e |
else exit 1; \
|
|
Packit |
7e982e |
fi
|