summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-03-04 00:34:18 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-03-04 00:34:18 +0100
commit6b4c974d5a1a8d12831a6b0de72104368851b5a7 (patch)
treec9f06ac8f70fbdc50bfa9215d9a2d0b93cc3dc57 /docs/Makefile
parent4ed88705b8ea1dae9adc109b71ef35624a9faccd (diff)
downloadnetctl-6b4c974d5a1a8d12831a6b0de72104368851b5a7.tar.gz
netctl-6b4c974d5a1a8d12831a6b0de72104368851b5a7.tar.xz
Overhaul of documentation
- Documentation now uses asciidoc instead of pandoc. - Documentation is updated. - More documentation is installed. - The Makefile has been revised. - Autocompletion files must now be installed through the PKGBUILD. - contrib/11netcfg has been deleted. It is unmaintained and duplicated in pm-utils. This closes FS#25587. - contrib/common.hook has been deleted. It demonstrated a feature that the target audience is already familiar with and didn't work anyway. This closes FS#27496. Developers are free to write unwieldy scripts in the {PRE,POST}_{UP,DOWN} variables.
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..5e434a3
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,18 @@
+# Makefile for netcfg documentation
+
+MANPAGES = netcfg.8 netcfg-profiles.5
+WEBPAGES = index.html features.html $(MANPAGES:%=%.html)
+
+.PHONY: all clean
+
+all: $(MANPAGES) $(WEBPAGES)
+
+$(MANPAGES): %: %.txt footer.txt
+ a2x -d manpage -f manpage -a manversion=$(VERSION) $<
+
+$(WEBPAGES): %.html: %.txt
+ asciidoc -a version=$(VERSION) $<
+
+clean:
+ -@rm -vf $(MANPAGES) $(WEBPAGES) 2>/dev/null
+