Permalink
Browse files

updated the build system.

  • Loading branch information...
1 parent 4d06f2a commit fa33cd28428c7bdf7b4adfbd9915c78b1376e91a @agentzh agentzh committed Mar 1, 2013
Showing with 11 additions and 11 deletions.
  1. +2 −1 Makefile
  2. +9 −10 ebooks.mk
View
@@ -5,10 +5,11 @@ ver=$(shell date +'%Y.%m.%d')
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 lang=$@ lang2=en src=en title="agentzh's Nginx Tutorials (ver $(ver))"
+ $(MAKE) -f ebooks.mk
clean:
rm -rf html/ wiki/ index*.html *.mobi *.epub *.pdf agentzh-nginx-tutorials-*.html
View
@@ -1,12 +1,12 @@
-lang=zhcn
-lang2=cn
-src=zh-cn
-ver=$(shell date +'%Y.%m.%d')
-title=agentzh的Nginx教程($(ver)版)
-name=agentzh-nginx-tutorials-$(lang)
-tutfiles=$(sort $(wildcard $(src)/*.tut))
-wikifiles=$(patsubst %.tut,wiki/%.wiki,$(tutfiles))
-htmlfiles=$(patsubst %.tut,html/%.html,$(tutfiles))
+lang= en
+lang2= en
+src= en
+ver= $(shell date +'%Y.%m.%d')
+title= agentzh's Nginx Tutorials (ver $(ver))
+name= agentzh-nginx-tutorials-$(lang)
+tutfiles= $(sort $(wildcard $(src)/*.tut))
+wikifiles= $(patsubst %.tut,wiki/%.wiki,$(tutfiles))
+htmlfiles= $(patsubst %.tut,html/%.html,$(tutfiles))
.PHONY: all mobi epub pdf html
@@ -59,4 +59,3 @@ wiki/%.wiki: %.tut ./utils/tut2wiki-$(lang2).pl
./utils/tut2wiki-$(lang2).pl -o $@ $<
#test: ; echo $(htmlfiles)
-

0 comments on commit fa33cd2

Please sign in to comment.