source: liacs/TPFL2010/assignment2/Makefile@ 292

Last change on this file since 292 was 234, checked in by Rick van der Zwet, 14 years ago

Easy package solutions, for deliveries

File size: 695 bytes
Line 
1# Rick van der Zwet
2# 0433373
3# XXX Assignment XXX
4# Licence: BSD
5# $Id: Makefile 741 2009-08-05 19:26:23Z rick $
6
7include latex.mk
8
9CFLAGS+=-Wall -g
10PROGRAMS=XXX
11
12# Easy package solution
13PREFIX=0433373-hvdzwet
14SUFFIX=$(shell pwd -P | sed 's+.*/\(.*\)/\(.*\)+\1-\2+')
15ARCHIVE=${PREFIX}-${SUFFIX}.tar
16PACKAGE=report.pdf report.tex
17
18all: $(PROGRAMS)
19
20clean: doc-clean
21 rm -Rf $(PROGRAMS)
22
23distclean: doc-distclean
24
25debug:
26 @sh -c 'while [ "true" ]; do make clean && make && ./${PROGRAMS}; echo -n "Completed: "; date; sleep 5; done'
27
28ones: $(PROGRAMS)
29 @sh -c ./$(PROGRAMS)
30
31package: $(ARCHIVE)
32$(ARCHIVE): $(PACKAGE)
33 tar --exclude-vcs --xform s+^+${PREFIX}-${SUFFIX}/+ -cf ${ARCHIVE} ${PACKAGE}
Note: See TracBrowser for help on using the repository browser.