reorganizing the repository
[project-aon.git] / common / pdf / build / lw / Makefile
diff --git a/common/pdf/build/lw/Makefile b/common/pdf/build/lw/Makefile
new file mode 100644 (file)
index 0000000..7258ee6
--- /dev/null
@@ -0,0 +1,43 @@
+
+# Dirs to build
+# LW #1 to #25 (English)
+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
+# 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:
+#  <CURRENTLY_NONE>
+
+DIRS = $(ENGLISH_DIRS) $(SPANISH_DIRS)
+
+DIRS-install := $(addsuffix -install,$(DIRS))
+DIRS-clean := $(addsuffix -clean,$(DIRS))
+DIRS-distclean := $(addsuffix -distclean,$(DIRS))
+
+.SUFFIXES:
+.PHONY: install all clean $(DIRS) $(DIRS-install)
+
+all: $(DIRS)
+all-english: $(ENGLISH_DIRS)
+all-spanish: $(SPANISH_DIRS)
+
+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 $@