proot/doc/GNUmakefile

30 lines
786 B
Makefile
Raw Normal View History

2014-08-05 16:49:31 +08:00
OUTPUTS = proot/man.1 proot.h proot/rpm-spec proot/index.html care.h care/index.html
all: $(OUTPUTS)
2011-08-31 23:47:22 +08:00
2014-06-25 21:21:14 +08:00
%/man.1: %/manual.txt
rst2man $< $@
2011-08-31 23:47:22 +08:00
%.xml: %.txt
rst2xml --no-doctype $< $@
2011-08-31 23:47:22 +08:00
%.html: %.txt
rst2html $< $@
2011-08-31 23:47:22 +08:00
# Workaround to avoid unescaped C character.
%/manual-quoted.txt: %/manual.txt
2011-08-31 23:47:22 +08:00
sed 's/"/\\\\"/g' $^ > $@
%.h: %/stylesheets/cli.xsl %/manual-quoted.xml
2011-08-31 23:47:22 +08:00
xsltproc --output $@ $^
2014-12-11 23:45:00 +08:00
%/rpm-spec: %/stylesheets/rpm-spec.xsl %/manual.xml # %/changelog.txt
2011-08-31 23:47:22 +08:00
xsltproc --output $@ $^
echo "* $(shell date +'%a %b %d %Y') Cédric VINCENT <cedric.vincent@st.com>" >> $@
cat $*/changelog.txt >> $@
2011-08-31 23:47:22 +08:00
%/index.html: stylesheets/website.xsl %/stylesheets/website.xsl %/manual.xml
xsltproc --output $@ $*/stylesheets/website.xsl $*/manual.xml
2011-08-31 23:47:22 +08:00
clean:
rm -f *.xml $(OUTPUTS) *-quoted.*