ddccontrol/doc/Makefile.am

44 lines
1.4 KiB
Makefile

XHTML_STYLESHEET=style.xsl
dist_html_DATA = html/*
EXTRA_DIST = main.xml gpl.xml install.xml about.xml report.xml supportedgc.xml supportedmonitors.xml thanks.xml techdocs.xml usage.xml style.xsl style-fo.xsl
if BUILD_DOC
html/*: main.xml gpl.xml install.xml about.xml report.xml supportedgc.xml supportedmonitors.xml thanks.xml techdocs.xml usage.xml style.xsl
rm -rf html.old
true `mv -f html html.old`
$(MKDIR_P) html
$(XSLTPROC) $(XSLTPROC_FLAGS) -o html/ $(top_srcdir)/doc/$(XHTML_STYLESHEET) $<
-$(TIDY) -q -raw -im html/*.html
publish: all
$(SSH) $(SFUSER)@ssh.sf.net "cd /home/groups/d/dd/ddccontrol/htdocs/doc/; rm -rf latest"
$(SCP) -C -r html $(SFUSER)@ssh.sf.net:/home/groups/d/dd/ddccontrol/htdocs/doc/latest
publish-release: all pdf
$(SSH) $(SFUSER)@ssh.sf.net "cd /home/groups/d/dd/ddccontrol/htdocs/doc/; rm -rf $(VERSION)"
$(SCP) -C -r html $(SFUSER)@ssh.sf.net:/home/groups/d/dd/ddccontrol/htdocs/doc/$(VERSION)
$(SCP) -C ddccontrol.pdf $(SFUSER)@ssh.sf.net:/home/groups/d/dd/ddccontrol/htdocs/doc/ddccontrol-$(VERSION).pdf
spell:
$(ASPELL) --mode=sgml check main.xml
clean-local:
rm -rf html
MOSTLYCLEANFILES = ddccontrol.fo ddccontrol.pdf
ddccontrol.fo: main.xml gpl.xml style-fo.xsl
$(XSLTPROC) \
--output ddccontrol.fo \
--stringparam paper.type A4 \
style-fo.xsl \
$<
ddccontrol.pdf: ddccontrol.fo
$(FOP) -fo ddccontrol.fo -pdf ddccontrol.pdf
pdf: ddccontrol.pdf
endif