# Directories # ----------- SHELL = /sbin/sh LUND = lund CIM = cim BIN = /local/common/bin # Programs # -------- MAKE = /usr/local/bin/gnumake TEST = /sbin/test # Files # ----- INFO_FILES = CONTENTS COPYRIGHT INSTALLATION README VERSION FTP_LIB = /local/ftp/pub/Simulatools # Targets # ------- both: cim lund cim: FORCE if $(TEST) -d $(CIM); then (cd $(CIM); $(MAKE)); fi lund: FORCE if $(TEST) -d $(LUND); then (cd $(LUND); $(MAKE)); fi # Actions # ------- install: install-cim install-lund install-cim: if $(TEST) -d $(CIM); then (cd $(CIM); $(MAKE) install); fi install-lund: (cd $(LUND); $(MAKE) install) install-sc: cp sc $(BIN) chmod 755 $(BIN)/sc distr: clean ls -l >CONTENTS tar cvf all.tar $(INFO_FILES) Makefile *.src *.c sc sc.1 \ cim lund progs test cp *.src *.c sc sc.1 Makefile $(INFO_FILES) all.tar $(FTP_LIB) chmod a+r $(FTP_LIB)/* (cd doc ; make distr) clean: rm -f CONTENTS all.tar *~ (if $(TEST) -d $(CIM) ; then cd $(CIM) ; $(MAKE) clean; fi) (if $(TEST) -d $(LUND) ; then cd $(LUND) ; $(MAKE) clean; fi) (if $(TEST) -d test ; then cd test ; $(MAKE) clean; fi) cvs: clean cvs ci # Additional definitions # ---------------------- FORCE: