#! 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 chapter4 chapter5 chapter6 chapter7 appendixe # HEAD = CDR_master_vr # # PDF = *.pdf # DOC = standard_symbols.tex # CNT = Makefile halld.bib # HTML = *.html build: $(MAKE) -C build chapters: $(MAKE) -C chapter1 $(MAKE) -C chapter4 $(MAKE) -C chapter5 $(MAKE) -C chapter6 $(MAKE) -C chapter7 $(MAKE) -C appendixe chapter1: $(MAKE) -C chapter1 chapter4: $(MAKE) -C chapter4 chapter5: $(MAKE) -C chapter5 chapter6: $(MAKE) -C chapter6 chapter7: $(MAKE) -C chapter7 appendixe: $(MAKE) -C appendixe tarball: rm -f cdr_vr.tar.gz rm -f cdr_vr.zip tar cfz cdr_vr.tar.gz build $(SUBDIRS) $(DOC) $(CNT) cover.pdf chtarball: $(MAKE) tarball -C chapter1 $(MAKE) tarball -C chapter4 $(MAKE) tarball -C chapter5 $(MAKE) tarball -C chapter6 $(MAKE) tarball -C chapter7 $(MAKE) tarball -C appendixe clean: $(MAKE) clean -C build $(MAKE) clean -C chapter1 $(MAKE) clean -C chapter4 $(MAKE) clean -C chapter5 $(MAKE) clean -C chapter6 $(MAKE) clean -C chapter7 $(MAKE) clean -C appendixe distclean: $(MAKE) distclean -C build $(MAKE) distclean -C chapter1 $(MAKE) distclean -C chapter4 $(MAKE) distclean -C chapter5 $(MAKE) distclean -C chapter6 $(MAKE) distclean -C chapter7 $(MAKE) distclean -C appendixe