1b13d8916b2ba2fa009f489a2e60615c7fe447fc
[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 13lsdlpdr
13 # Unpublished (spanish) books
14 #  14lcdk 16eldv
15
16 DIRS = $(ENGLISH_DIRS) $(SPANISH_DIRS)
17
18 DIRS-install := $(addsuffix -install,$(DIRS))
19 DIRS-install-en := $(addsuffix -install,$(ENGLISH_DIRS))
20 DIRS-install-es := $(addsuffix -install,$(SPANISH_DIRS))
21 DIRS-clean := $(addsuffix -clean,$(DIRS))
22 DIRS-distclean := $(addsuffix -distclean,$(DIRS))
23
24 .SUFFIXES:
25 .PHONY: install all clean $(DIRS) $(DIRS-install)
26
27 all: $(DIRS)
28 all-english: $(ENGLISH_DIRS)
29 all-spanish: $(SPANISH_DIRS)
30
31 install: $(DIRS-install)
32 install-english: $(DIRS-install-en)
33 install-spanish: $(DIRS-install-es)
34
35 clean: $(DIRS-clean) test-clean
36 distclean: $(DIRS-distclean)
37
38 $(DIRS-install):
39         $(MAKE) -C $(subst -install,,$@) install
40
41 $(DIRS-clean):
42         $(MAKE) -C $(subst -clean,,$@) clean
43
44 $(DIRS-distclean):
45         $(MAKE) -C $(subst -distclean,,$@) distclean
46
47 $(DIRS):
48         $(MAKE) -C $@
49
50 test:
51         $(MAKE) -C setup_test 
52
53 test-clean:
54         $(MAKE) -C setup_test clean