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
|
2014-02-04 20:37:12 +08:00
|
|
|
all: $(OUTPUTS)
|
2011-08-31 23:47:22 +08:00
|
|
|
|
2014-06-25 21:21:14 +08:00
|
|
|
%/man.1: %/manual.txt
|
2012-04-11 00:02:05 +08:00
|
|
|
rst2man $< $@
|
2011-08-31 23:47:22 +08:00
|
|
|
|
|
|
|
%.xml: %.txt
|
2012-04-11 00:02:05 +08:00
|
|
|
rst2xml --no-doctype $< $@
|
2011-08-31 23:47:22 +08:00
|
|
|
|
|
|
|
%.html: %.txt
|
2012-04-11 00:02:05 +08:00
|
|
|
rst2html $< $@
|
2011-08-31 23:47:22 +08:00
|
|
|
|
|
|
|
# Workaround to avoid unescaped C character.
|
2014-02-04 20:37:12 +08:00
|
|
|
%/manual-quoted.txt: %/manual.txt
|
2011-08-31 23:47:22 +08:00
|
|
|
sed 's/"/\\\\"/g' $^ > $@
|
|
|
|
|
2014-03-27 15:29:24 +08:00
|
|
|
%.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 $@ $^
|
2013-07-11 22:08:27 +08:00
|
|
|
echo "* $(shell date +'%a %b %d %Y') Cédric VINCENT <cedric.vincent@st.com>" >> $@
|
2014-02-04 20:37:12 +08:00
|
|
|
cat $*/changelog.txt >> $@
|
2011-08-31 23:47:22 +08:00
|
|
|
|
2014-03-27 15:29:24 +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:
|
2014-02-04 20:37:12 +08:00
|
|
|
rm -f *.xml $(OUTPUTS) *-quoted.*
|