diff options
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 18 |
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 + |