Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-02 18:20:36 -0500
committerDan McGee <dan@archlinux.org>2010-07-02 18:23:20 -0500
commitfcb4f0264f2b8e0a6ed1e7eebfe00f662ba94ef2 (patch)
tree1fae7c39abdd10d47f87fa619d86469c866fe41a /doc/Makefile.am
parent3d8be4291cb7e1df69d99741404e7bd1856c3bad (diff)
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>
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ad677391..2e656f61 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -80,6 +80,15 @@ endif
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}
ASCIIDOC_OPTS = \
@@ -100,16 +109,17 @@ $(ASCIIDOC_MANS): asciidoc.conf footer.txt
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
%.html: %.txt
- asciidoc $(ASCIIDOC_OPTS) -a linkcss $*.txt
+ asciidoc $(ASCIIDOC_OPTS) $*.txt
dos2unix $@
HACKING.html: ../HACKING
- asciidoc $(ASCIIDOC_OPTS) -a linkcss -o $@ ../HACKING
+ asciidoc $(ASCIIDOC_OPTS) -o $@ ../HACKING
dos2unix $@
# Customizations for certain HTML docs
$(HTML_MANPAGES): asciidoc.conf footer.txt
$(HTML_OTHER): asciidoc.conf
+%.html: ASCIIDOC_OPTS += -a linkcss -a toc -a icons
%.8.html: ASCIIDOC_OPTS += -d manpage
%.5.html: ASCIIDOC_OPTS += -d manpage
%.3.html: ASCIIDOC_OPTS += -d manpage