summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-05-10 20:38:46 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-05-10 20:39:39 +0100
commitaa18a6c13c6162107c3870b997d68e4ea2ffdf3f (patch)
tree032ea35470c2921a41c7ede19c9a748990105bee
parent0d0e3b3c05b5e3004f526bf0ace02885c36ce2d5 (diff)
improved the Makefile
we have rules to compile the pdf and or the html the PHONY target was forgotten and has been added Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b0c14d2..8b5ac02 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,19 @@ SRC = $(wildcard *.asciidoc)
HTML = $(SRC:.asciidoc=.html)
PDF = $(SRC:.asciidoc=.pdf)
-all: $(HTML) $(PDF)
+all: html pdf
+
+html: $(HTML)
+
+pdf: $(PDF)
%.html: %.asciidoc $(wildcard *.asciidoci)
asciidoc $<
%.pdf: %.asciidoc $(wildcard *.asciidoci)
a2x $< -L
+
+clean:
+ $(RM) $(HTML) $(PDF)
+
+.PHONY: all clean html pdf