Fix rules to point to correct locations
[project-aon.git] / common / epub / Makefile
1
2 # Dirs to build
3 # LW #1 to #28 (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     27v 28thos 01gstw  02tfc  03btng  04wotw 
9
10 # LS #1 to #12  (Spanish)
11 SPANISH_DIRS := 01hdlo 02fsea 03lcdk 04eam 05eddls 06lpdlc 07meec \
12         08ljdlh 09ecdm 10lmdt 11pdt 12lsdlo
13 #
14 # Unpublished (spanish) books:
15 # <NONE>
16
17 DIRS = $(ENGLISH_DIRS) $(SPANISH_DIRS)
18
19 DIRS-install := $(addsuffix -install,$(DIRS))
20 DIRS-clean := $(addsuffix -clean,$(DIRS))
21 DIRS-distclean := $(addsuffix -distclean,$(DIRS))
22
23 .SUFFIXES:
24 .PHONY: install publish all clean $(DIRS) $(DIRS-install)
25
26 all: $(DIRS)
27 all-english: $(ENGLISH_DIRS)
28 all-spanish: $(SPANISH_DIRS)
29
30 publish: install
31 install: $(DIRS-install)
32 clean: $(DIRS-clean)
33 distclean: $(DIRS-distclean)
34
35 $(DIRS-install):
36         $(MAKE) -C $(subst -install,,$@) install
37
38 $(DIRS-clean):
39         $(MAKE) -C $(subst -clean,,$@) clean
40
41 $(DIRS-distclean):
42         $(MAKE) -C $(subst -distclean,,$@) distclean
43
44 $(DIRS):
45         $(MAKE) -C $@