Make it possible to generate 29tsoc ebooks
[project-aon.git] / common / pdf / build / gs / Makefile
1
2 # Dirs to build
3 # GS #1 to #18 (English)
4 ENGLISH_DIRS := 01gstw 02tfc 03btng 04wotw
5
6 # No translations yet:
7 #SPANISH_DIRS := 
8
9 DIRS = $(ENGLISH_DIRS) 
10
11 DIRS-install := $(addsuffix -install,$(DIRS))
12 DIRS-clean := $(addsuffix -clean,$(DIRS))
13 DIRS-distclean := $(addsuffix -distclean,$(DIRS))
14
15 .SUFFIXES:
16 .PHONY: install all clean $(DIRS) $(DIRS-install)
17
18 all: $(DIRS)
19 all-english: $(ENGLISH_DIRS)
20 #all-spanish: $(SPANISH_DIRS)
21
22 install: $(DIRS-install)
23 clean: $(DIRS-clean)
24 distclean: $(DIRS-distclean)
25
26 $(DIRS-install):
27         $(MAKE) -C $(subst -install,,$@) install
28
29 $(DIRS-clean):
30         $(MAKE) -C $(subst -clean,,$@) clean
31
32 $(DIRS-distclean):
33         $(MAKE) -C $(subst -distclean,,$@) distclean
34
35 $(DIRS):
36         $(MAKE) -C $@