Makefile 1.69 KB
default: user_guide  theory_manual mod_document

clean: clean_theory_manual clean_user_guide clean_mod_document

TOP_LEVEL_DIRECTORY:=$(shell pwd)

export TOP_LEVEL_DIRECTORY

help:
	@echo "make                     : make SACAMOS_UserGuide.pdf, SACAMOS_TheoryManual.pdf and SACAMOS_Spacecraft_cable_MOD_development.pdf"
	@echo "make install             : make SACAMOS_UserGuide.pdf, SACAMOS_TheoryManual.pdf and SACAMOS_Spacecraft_cable_MOD_development.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 mod_document        : make SACAMOS_Spacecraft_cable_MOD_development.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_mod_document  : clean mod document 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) )

mod_document:
	( cd MOD_DOCUMENT ; $(MAKE) )

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

clean_user_guide:
	( cd USER_GUIDE ; make clean )

clean_mod_document:
	( cd MOD_DOCUMENT ; make clean )

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