docs: Add a 'website' target

This will allow me to be not quite as lazy in getting website changes out
to the Arch Linux server by making it trivial to get everything packaged up
and working correctly.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-07-02 18:20:36 -05:00
parent 3d8be4291c
commit fcb4f0264f
2 changed files with 13 additions and 2 deletions

1
doc/.gitignore vendored
View file

@ -10,3 +10,4 @@ repo-remove.8
*.html *.html
*.xml *.xml
man3 man3
website.tar.gz

View file

@ -80,6 +80,15 @@ endif
html: $(HTML_DOCS) html: $(HTML_DOCS)
website: html
bsdtar czf website.tar.gz $(HTML_DOCS) \
-C /etc/asciidoc/stylesheets/ \
xhtml11.css xhtml11-manpage.css xhtml11-quirks.css \
-C /etc/asciidoc/javascripts/ \
asciidoc-xhtml11.js \
-C /etc/asciidoc/ \
images
pkgdatadir = ${datadir}/${PACKAGE} pkgdatadir = ${datadir}/${PACKAGE}
ASCIIDOC_OPTS = \ ASCIIDOC_OPTS = \
@ -100,16 +109,17 @@ $(ASCIIDOC_MANS): asciidoc.conf footer.txt
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
%.html: %.txt %.html: %.txt
asciidoc $(ASCIIDOC_OPTS) -a linkcss $*.txt asciidoc $(ASCIIDOC_OPTS) $*.txt
dos2unix $@ dos2unix $@
HACKING.html: ../HACKING HACKING.html: ../HACKING
asciidoc $(ASCIIDOC_OPTS) -a linkcss -o $@ ../HACKING asciidoc $(ASCIIDOC_OPTS) -o $@ ../HACKING
dos2unix $@ dos2unix $@
# Customizations for certain HTML docs # Customizations for certain HTML docs
$(HTML_MANPAGES): asciidoc.conf footer.txt $(HTML_MANPAGES): asciidoc.conf footer.txt
$(HTML_OTHER): asciidoc.conf $(HTML_OTHER): asciidoc.conf
%.html: ASCIIDOC_OPTS += -a linkcss -a toc -a icons
%.8.html: ASCIIDOC_OPTS += -d manpage %.8.html: ASCIIDOC_OPTS += -d manpage
%.5.html: ASCIIDOC_OPTS += -d manpage %.5.html: ASCIIDOC_OPTS += -d manpage
%.3.html: ASCIIDOC_OPTS += -d manpage %.3.html: ASCIIDOC_OPTS += -d manpage