Skip to content

Commit fa33cd2

Browse files
committed
updated the build system.
1 parent 4d06f2a commit fa33cd2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ ver=$(shell date +'%Y.%m.%d')
55
all: zhcn en
66

77
zhcn:
8+
$(MAKE) -f ebooks.mk lang=$@ lang2=cn src=zh-cn title="agentzh的Nginx教程($(ver)版)"
89
$(MAKE) -f ebooks.mk
910

1011
en:
11-
$(MAKE) -f ebooks.mk lang=$@ lang2=en src=en title="agentzh's Nginx Tutorials (ver $(ver))"
12+
$(MAKE) -f ebooks.mk
1213

1314
clean:
1415
rm -rf html/ wiki/ index*.html *.mobi *.epub *.pdf agentzh-nginx-tutorials-*.html

ebooks.mk

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
lang=zhcn
2-
lang2=cn
3-
src=zh-cn
4-
ver=$(shell date +'%Y.%m.%d')
5-
title=agentzh的Nginx教程($(ver)版)
6-
name=agentzh-nginx-tutorials-$(lang)
7-
tutfiles=$(sort $(wildcard $(src)/*.tut))
8-
wikifiles=$(patsubst %.tut,wiki/%.wiki,$(tutfiles))
9-
htmlfiles=$(patsubst %.tut,html/%.html,$(tutfiles))
1+
lang= en
2+
lang2= en
3+
src= en
4+
ver= $(shell date +'%Y.%m.%d')
5+
title= agentzh's Nginx Tutorials (ver $(ver))
6+
name= agentzh-nginx-tutorials-$(lang)
7+
tutfiles= $(sort $(wildcard $(src)/*.tut))
8+
wikifiles= $(patsubst %.tut,wiki/%.wiki,$(tutfiles))
9+
htmlfiles= $(patsubst %.tut,html/%.html,$(tutfiles))
1010

1111
.PHONY: all mobi epub pdf html
1212

@@ -59,4 +59,3 @@ wiki/%.wiki: %.tut ./utils/tut2wiki-$(lang2).pl
5959
./utils/tut2wiki-$(lang2).pl -o $@ $<
6060

6161
#test: ; echo $(htmlfiles)
62-

0 commit comments

Comments
 (0)