Add a manpage skeleton for grmlzshrc.5 as txt2tags markup
[grml-etc-core.git] / doc / Makefile
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644 (file)
index 0000000..e482453
--- /dev/null
@@ -0,0 +1,21 @@
+MANPAGES = grmlzshrc.5
+HTMLPAGES = grmlzshrc.html
+
+all: $(MANPAGES) $(HTMLPAGES)
+
+.SUFFIXES:
+.SUFFIXES: .t2t .5 .html
+
+.t2t.5:
+       @printf 'TXT2TAGS %s > %s\n' "$<" "$@"
+       @txt2tags --target man -o- $< | sed -e '/^$$/d' -e 's/^\\e$$//' > $@
+
+.t2t.html:
+       @printf 'TXT2TAGS %s > %s\n' "$<" "$@"
+       @txt2tags --target xhtml --css-sugar --style t2t-modern.css -o- $< \
+| sed -e '/^$$/d' -e 's/^\\$$//' > $@
+
+clean:
+       rm -f *.5 *.html *.gz *~
+
+.PHONY: all clean