Last change
on this file since 312 was 234, checked in by Rick van der Zwet, 14 years ago |
Easy package solutions, for deliveries
|
File size:
695 bytes
|
Rev | Line | |
---|
[2] | 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 |
|
---|
| 7 | include latex.mk
|
---|
| 8 |
|
---|
| 9 | CFLAGS+=-Wall -g
|
---|
| 10 | PROGRAMS=XXX
|
---|
| 11 |
|
---|
[234] | 12 | # Easy package solution
|
---|
| 13 | PREFIX=0433373-hvdzwet
|
---|
| 14 | SUFFIX=$(shell pwd -P | sed 's+.*/\(.*\)/\(.*\)+\1-\2+')
|
---|
| 15 | ARCHIVE=${PREFIX}-${SUFFIX}.tar
|
---|
| 16 | PACKAGE=report.pdf report.tex
|
---|
| 17 |
|
---|
[2] | 18 | all: $(PROGRAMS)
|
---|
| 19 |
|
---|
| 20 | clean: doc-clean
|
---|
| 21 | rm -Rf $(PROGRAMS)
|
---|
| 22 |
|
---|
| 23 | distclean: doc-distclean
|
---|
| 24 |
|
---|
| 25 | debug:
|
---|
| 26 | @sh -c 'while [ "true" ]; do make clean && make && ./${PROGRAMS}; echo -n "Completed: "; date; sleep 5; done'
|
---|
| 27 |
|
---|
| 28 | ones: $(PROGRAMS)
|
---|
| 29 | @sh -c ./$(PROGRAMS)
|
---|
[234] | 30 |
|
---|
| 31 | package: $(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.