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