#! gnumake # # make build # generate the full document build in the build subdirectory. # # make chapters # generate each chapter in its own subdirectory. # # make chapter[i] # generate chapter [i] in its own subdirectory. # # make clean # clean up all subdirectories # # make distclean # make the tree distribution clean. # # make tarball # make a release tarball of the entire tree. # # make chtarball # make tarballs in each chapter directory. # # SUBDIRS = chapter1 chapter2 chapter3 chapter4 chapter5 chapter6 chapter7 chapter8 \ chapter9 chapter10 chapter11 appendixa appendixb appendixc appendixd appendixe \ appendixf appendixg appendixh # HEAD = CDR_master_v5 # # PDF = *.pdf # DOC = standard_symbols.tex # CNT = Makefile halld.bib # HTML = *.html build: $(MAKE) -C build chapters: $(MAKE) -C chapter1 $(MAKE) -C chapter2 $(MAKE) -C chapter3 $(MAKE) -C chapter4 $(MAKE) -C chapter5 $(MAKE) -C chapter6 $(MAKE) -C chapter7 $(MAKE) -C chapter8 $(MAKE) -C chapter9 $(MAKE) -C chapter10 $(MAKE) -C appendixa $(MAKE) -C appendixb $(MAKE) -C appendixc $(MAKE) -C appendixd $(MAKE) -C appendixe $(MAKE) -C appendixf $(MAKE) -C appendixg $(MAKE) -C appendixh chapter1: $(MAKE) -C chapter1 chapter2: $(MAKE) -C chapter2 chapter3: $(MAKE) -C chapter3 chapter4: $(MAKE) -C chapter4 chapter5: $(MAKE) -C chapter5 chapter6: $(MAKE) -C chapter6 chapter7: $(MAKE) -C chapter7 chapter8: $(MAKE) -C chapter8 chapter9: $(MAKE) -C chapter9 chapter10: $(MAKE) -C chapter10 appendixa: $(MAKE) -C appendixa appendixb: $(MAKE) -C appendixb appendixc: $(MAKE) -C appendixc appendixd: $(MAKE) -C appendixd appendixe: $(MAKE) -C appendixe appendixf: $(MAKE) -C appendixf appendixg: $(MAKE) -C appendixg appendixh: $(MAKE) -C appendixh tarball: rm -f cdr_v5.tar.gz rm -f cdr_v5.zip tar cfz cdr_v5.tar.gz build $(SUBDIRS) $(DOC) $(CNT) chtarball: $(MAKE) tarball -C chapter1 $(MAKE) tarball -C chapter2 $(MAKE) tarball -C chapter3 $(MAKE) tarball -C chapter4 $(MAKE) tarball -C chapter5 $(MAKE) tarball -C chapter6 $(MAKE) tarball -C chapter7 $(MAKE) tarball -C chapter8 $(MAKE) tarball -C chapter9 $(MAKE) tarball -C chapter10 $(MAKE) tarball -C appendixa $(MAKE) tarball -C appendixb $(MAKE) tarball -C appendixc $(MAKE) tarball -C appendixd $(MAKE) tarball -C appendixe $(MAKE) tarball -C appendixf $(MAKE) tarball -C appendixg $(MAKE) tarball -C appendixh clean: $(MAKE) clean -C build $(MAKE) clean -C chapter1 $(MAKE) clean -C chapter2 $(MAKE) clean -C chapter3 $(MAKE) clean -C chapter4 $(MAKE) clean -C chapter5 $(MAKE) clean -C chapter6 $(MAKE) clean -C chapter7 $(MAKE) clean -C chapter8 $(MAKE) clean -C chapter9 $(MAKE) clean -C chapter10 $(MAKE) clean -C appendixa $(MAKE) clean -C appendixb $(MAKE) clean -C appendixc $(MAKE) clean -C appendixd $(MAKE) clean -C appendixe $(MAKE) clean -C appendixf $(MAKE) clean -C appendixg $(MAKE) clean -C appendixh distclean: $(MAKE) distclean -C build $(MAKE) distclean -C chapter1 $(MAKE) distclean -C chapter2 $(MAKE) distclean -C chapter3 $(MAKE) distclean -C chapter4 $(MAKE) distclean -C chapter5 $(MAKE) distclean -C chapter6 $(MAKE) distclean -C chapter7 $(MAKE) distclean -C chapter8 $(MAKE) distclean -C chapter9 $(MAKE) distclean -C chapter10 $(MAKE) distclean -C appendixa $(MAKE) distclean -C appendixb $(MAKE) distclean -C appendixc $(MAKE) distclean -C appendixd $(MAKE) distclean -C appendixe $(MAKE) distclean -C appendixf $(MAKE) distclean -C appendixg $(MAKE) distclean -C appendixh