reorganizing the repository
[project-aon.git] / common / epub / Makefile
diff --git a/common/epub/Makefile b/common/epub/Makefile
new file mode 100644 (file)
index 0000000..b8f6201
--- /dev/null
@@ -0,0 +1,47 @@
+
+# Dirs to build
+# LW #1 to #25 (English)
+# GS #1 to #4
+ENGLISH_DIRS := 01fftd 02fotw 03tcok 04tcod 05sots 06tkot 07cd 08tjoh \
+       09tcof 10tdot 11tpot 12tmod 13tplor 14tcok 15tdc 16tlov 17tdoi \
+       18dotd 19wb 20tcon 21votm 22tbos 23mh 24rw  25totw \
+       01gstw  02tfc  03btng  04wotw 
+# Unpublished (english) books:
+# 26tfobm 27v 28thos
+
+# LS #1 to #12  (Spanish)
+SPANISH_DIRS := 01hdlo 02fsea 03lcdk 04eam 05eddls 06lpdlc 07meec \
+       08ljdlh 09ecdm 10lmdt 11pdt 12lsdlo
+#
+# Unpublished (spanish) books:
+# <NONE>
+
+DIRS = $(ENGLISH_DIRS) $(SPANISH_DIRS)
+
+DIRS-install := $(addsuffix -install,$(DIRS))
+DIRS-clean := $(addsuffix -clean,$(DIRS))
+DIRS-distclean := $(addsuffix -distclean,$(DIRS))
+
+.SUFFIXES:
+.PHONY: install publish all clean $(DIRS) $(DIRS-install)
+
+all: $(DIRS)
+all-english: $(ENGLISH_DIRS)
+all-spanish: $(SPANISH_DIRS)
+
+publish: install
+install: $(DIRS-install)
+clean: $(DIRS-clean)
+distclean: $(DIRS-distclean)
+
+$(DIRS-install):
+       $(MAKE) -C $(subst -install,,$@) install
+
+$(DIRS-clean):
+       $(MAKE) -C $(subst -clean,,$@) clean
+
+$(DIRS-distclean):
+       $(MAKE) -C $(subst -distclean,,$@) distclean
+
+$(DIRS):
+       $(MAKE) -C $@