summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-04-30 01:23:06 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-04-30 01:23:06 +0200
commit2401ca411949a882c23f01942379e37dd1daa36c (patch)
treef1bb8b59c55d1023cc668ee9f62b40287dbdfb50 /docs/Makefile
parent154cbc6c9bc764cc9754a86bcf5e39044d86352e (diff)
downloadnetctl-2401ca411949a882c23f01942379e37dd1daa36c.tar.gz
netctl-2401ca411949a882c23f01942379e37dd1daa36c.tar.xz
Move the website to a website
Give users a way to stumble upon this marvelous piece of literature that had completely been forgotten (it was introduced in the repository around netcfg 2.6, but never installed).
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/Makefile b/docs/Makefile
index f8671f6..ef05303 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -3,16 +3,19 @@
MANPAGES = netcfg.8 netcfg-profiles.5
WEBPAGES = index.html features.html $(MANPAGES:%=%.html)
-.PHONY: all clean
-
-all: $(MANPAGES) $(WEBPAGES)
+.PHONY: manpages website clean
+manpages: $(MANPAGES)
+website: website.tar.xz
$(MANPAGES): %: %.txt footer.txt
a2x -d manpage -f manpage -a manversion=$(VERSION) $<
$(WEBPAGES): %.html: %.txt
- asciidoc -a disable-javascript -a version=$(VERSION) $<
+ asciidoc -a disable-javascript -a linkcss -a max-width=960px $<
+
+website.tar.xz: $(WEBPAGES)
+ tar --transform "s%^%netcfg/%" -cJf $@ $^ -C /etc/asciidoc/stylesheets asciidoc.css
clean:
- -@rm -vf $(MANPAGES) $(WEBPAGES) 2>/dev/null
+ -@rm -vf $(MANPAGES) $(WEBPAGES) website.tar.xz 2>/dev/null