# Rick van der Zwet # 0433373 # XXX Assignment XXX # Licence: BSD # $Id: Makefile 741 2009-08-05 19:26:23Z rick $ include latex.mk CFLAGS+=-Wall -g PROGRAMS=XXX # Easy package solution PREFIX=0433373-hvdzwet SUFFIX=$(shell pwd -P | sed 's+.*/\(.*\)/\(.*\)+\1-\2+') ARCHIVE=${PREFIX}-${SUFFIX}.tar PACKAGE=report.pdf report.tex all: $(PROGRAMS) clean: doc-clean rm -Rf $(PROGRAMS) distclean: doc-distclean debug: @sh -c 'while [ "true" ]; do make clean && make && ./${PROGRAMS}; echo -n "Completed: "; date; sleep 5; done' ones: $(PROGRAMS) @sh -c ./$(PROGRAMS) package: $(ARCHIVE) $(ARCHIVE): $(PACKAGE) tar --exclude-vcs --xform s+^+${PREFIX}-${SUFFIX}/+ -cf ${ARCHIVE} ${PACKAGE}