# Use 'make pack' to create file lab3.tar.bz2 HEADERFILES = pipe.h SOURCEFILES = pipe.c DISTFILES = $(HEADERFILES) $(SOURCEFILES) Makefile DISTFOLDER = lab3 HANDIN = ${DISTFOLDER}.tar.bz2 DEST=pipe CCFLAG= .PHONY: all clean pack all: $(DEST) # //TODO: Create executable file clean: # //TODO: Clean all unnecessary files pack: @echo [PACK] Preparing for packaging... @rm -fr ${DISTFOLDER} ${HANDIN} @mkdir ${DISTFOLDER} @echo [PACK] Copying solution files @for file in ${DISTFILES}; do\ cp -f $$file ${DISTFOLDER};\ echo \>\>\> $$file;\ done; @echo [PACK] Creating ${HANDIN}... @tar cjf ${HANDIN} ${DISTFOLDER} @rm -fr ${DISTFOLDER} @echo [PACK] Done!