Permalink
Browse files

added the "html" target to Makefile; also added gen-html-index-*.pl t…

…o the dependency list in the build system.
  • Loading branch information...
agentzh committed Mar 11, 2013
1 parent 164c6a7 commit 178844448c5e0a21c6b86a2671edc1afe942d789
Showing with 7 additions and 4 deletions.
  1. +5 −2 Makefile
  2. +2 −2 ebooks.mk
View
@@ -1,16 +1,19 @@
ver=$(shell date +'%Y.%m.%d')
-.PHONY: all zhcn en clean
+.PHONY: all zhcn en clean html
all: zhcn en
zhcn:
$(MAKE) -f ebooks.mk lang=$@ lang2=cn src=zh-cn title="agentzh的Nginx教程($(ver)版)"
- $(MAKE) -f ebooks.mk
en:
$(MAKE) -f ebooks.mk
+html:
+ $(MAKE) -f ebooks.mk lang=cn lang2=cn src=zh-cn title="agentzh的Nginx教程($(ver)版)" html
+ $(MAKE) -f ebooks.mk html
+
clean:
rm -rf html/ wiki/ index*.html *.mobi *.epub *.pdf agentzh-nginx-tutorials-*.html
View
@@ -47,8 +47,8 @@ html: $(name).html
--title "$(title)" --publisher 'agentzh' \
--language $(lang2) --authors 'agentzh'
-$(name).html: $(htmlfiles)
- ./utils/gen-html-index-$(lang2).pl -v $(ver) -o $@ $^
+$(name).html: $(htmlfiles) ./utils/gen-html-index-$(lang2).pl
+ ./utils/gen-html-index-$(lang2).pl -v $(ver) -o $@ $(htmlfiles)
html/%.html: wiki/%.wiki ./utils/wiki2html-$(lang2).pl
mkdir -p $(dir $@)

0 comments on commit 1788444

Please sign in to comment.