Ignore:
Timestamp:
Nov 17, 2010, 5:01:26 PM (14 years ago)
Author:
Rick van der Zwet
Message:

Easy package solutions, for deliveries

File:
1 copied

Legend:

Unmodified
Added
Removed
  • liacs/TPFL2010/assignment2/Makefile

    r232 r234  
    99CFLAGS+=-Wall -g
    1010PROGRAMS=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
    1117
    1218all: $(PROGRAMS)
     
    2228ones: $(PROGRAMS)
    2329        @sh -c ./$(PROGRAMS)
     30
     31package: $(ARCHIVE)
     32$(ARCHIVE): $(PACKAGE)
     33        tar --exclude-vcs --xform s+^+${PREFIX}-${SUFFIX}/+ -cf ${ARCHIVE} ${PACKAGE}
Note: See TracChangeset for help on using the changeset viewer.