Scott Daniels ae30131299 Defalt to using sh instead of ksh in makefiles, but allow override by user.
Change-Id: I5c23fde4960bf31a0fd5c0ce027e0dabc8377123
2013-09-18 12:46:43 -04:00

32 lines
601 B
Makefile

# simple makefile to build all doc from the subdirectories below and to
# pull the final pdf files to this directory.
include global.make
sub_dirs = ic_user
# buld and prompte the final pdf to this directory
all::
for d in $(sub_dirs);\
do\
echo "build $d";\
(cd $$d; $(MAKE) && $(MAKE) promote);\
done
# scrub everything away execpt source
nuke::
for d in $(sub_dirs);\
do\
echo "build $d";\
(cd $$d; $(MAKE) nuke );\
done
rm -f ./*.pdf
# remove just tex detritis leaving final doc files
clean::
for d in $(sub_dirs);\
do\
echo "build $d";\
(cd $$d; $(MAKE) nuke );\
done