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