diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-05-10 20:38:46 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-05-10 20:39:39 +0100 |
commit | aa18a6c13c6162107c3870b997d68e4ea2ffdf3f (patch) | |
tree | 032ea35470c2921a41c7ede19c9a748990105bee | |
parent | 0d0e3b3c05b5e3004f526bf0ace02885c36ce2d5 (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-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |