Makefile 1.18 KB
default: user_guide  theory_manual 

clean: clean_theory_manual clean_user_guide

TOP_LEVEL_DIRECTORY:=$(shell pwd)

export TOP_LEVEL_DIRECTORY

help:
	@echo "make                     : make SACAMOS_UserGuide.pdf and SACAMOS_TheoryManual.pdf"
	@echo "make install             : make SACAMOS_UserGuide.pdf and SACAMOS_TheoryManual.pdf and move to the top level"
	@echo "make user_guide          : make SACAMOS_UserGuide.pdf"
	@echo "make theory_manual       : make SACAMOS_TheoryManual.pdf"
	@echo "make clean               : clean all LaTeX files"
	@echo "make clean_theory_manual : clean theory manual LaTeX files"
	@echo "make clean_user_guide    : clean user guide LaTeX files"
	@echo "make clean_all           : clean all LaTeX files and image files"

theory_manual:
	( cd THEORY_MANUAL ; $(MAKE) )

user_guide:
	( cd USER_GUIDE ; $(MAKE) )

install:
	( cd USER_GUIDE ; $(MAKE) )
	( mv USER_GUIDE/SACAMOS_UserGuide.pdf . )
	( cd THEORY_MANUAL ; $(MAKE) )
	( mv THEORY_MANUAL/SACAMOS_TheoryManual.pdf . )
        
clean_theory_manual: 
	( cd THEORY_MANUAL ; make clean )

clean_user_guide:
	( cd USER_GUIDE ; make clean )

clean_all:
	( cd THEORY_MANUAL ; make clean_all )
	( cd USER_GUIDE ; make clean_all )