Make it possible to generate 29tsoc ebooks
[project-aon.git] / common / epub / Makefile
1
2 # Dirs to build
3 # LW #1 to #28 (English)
4 # GS #1 to #4
5 # FW #1
6 ENGLISH_DIRS := 01fftd 02fotw 03tcok 04tcod 05sots 06tkot 07cd 08tjoh \
7         09tcof 10tdot 11tpot 12tmod 13tplor 14tcok 15tdc 16tlov 17tdoi \
8         18dotd 19wb 20tcon 21votm 22tbos 23mh 24rw  25totw 26tfobm \
9         27v 28thos 29tsoc 01gstw  02tfc  03btng  04wotw 01hh
10
11 # LS #1 to #12  (Spanish)
12 SPANISH_DIRS := 01hdlo 02fsea 03lcdk 04eam 05eddls 06lpdlc 07meec \
13         08ljdlh 09ecdm 10lmdt 11pdt 12lsdlo 13lsdlpdr
14 #
15 # Unpublished (spanish) books:
16 # 14lcdk 16eldv
17
18 DIRS = $(ENGLISH_DIRS) $(SPANISH_DIRS)
19
20 DIRS-install := $(addsuffix -install,$(DIRS))
21 DIRS-clean := $(addsuffix -clean,$(DIRS))
22 DIRS-distclean := $(addsuffix -distclean,$(DIRS))
23
24 .SUFFIXES:
25 .PHONY: install publish all clean $(DIRS) $(DIRS-install)
26
27 all: $(DIRS)
28 all-english: $(ENGLISH_DIRS)
29 all-spanish: $(SPANISH_DIRS)
30
31 publish: install
32 install: $(DIRS-install)
33 clean: $(DIRS-clean)
34 distclean: $(DIRS-distclean)
35
36 $(DIRS-install):
37         $(MAKE) -C $(subst -install,,$@) install
38
39 $(DIRS-clean):
40         $(MAKE) -C $(subst -clean,,$@) clean
41
42 $(DIRS-distclean):
43         $(MAKE) -C $(subst -distclean,,$@) distclean
44
45 $(DIRS):
46         $(MAKE) -C $@