From 282eb83a4fed2d2d34ae11fa5b2c8f64f6a32b7f Mon Sep 17 00:00:00 2001 From: "G.raud" Date: Sun, 16 Mar 2014 13:30:09 +0100 Subject: [PATCH] Makefile: build README.html --- .gitignore | 1 + Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e6bcbb8..0d82a20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/README.html *.1.helpm *.pod *.1 diff --git a/Makefile b/Makefile index 3ec2774..6f2d9e5 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,13 @@ POD2MAN = pod2man POD2MAN_FLAGS = --utf8 -c "User manuals" POD2TEXT = pod2text POD2HTML = pod2html +ASCIIDOC = asciidoc +ASCIIDOC_FLAGS = -apackagename="$(PACKAGE_NAME)" SCRIPTS = archives2git MANDOC = $(SCRIPTS:%=%.1) TEXTDOC = $(SCRIPTS:%=%.1.txt) -HTMLDOC = $(SCRIPTS:%=%.1.html) +HTMLDOC = $(SCRIPTS:%=%.1.html) README.html ALLDOC = $(MANDOC) $(TEXTDOC) $(HTMLDOC) .PHONY: .help all clean build doc install install-doc @@ -47,6 +49,9 @@ install-doc: build: doc: $(ALLDOC) +README.html: README + $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d article -a readme $< + %.1.helpm: % ./$< -h >$@ %.pod: %.1.helpm -- 2.11.4.GIT