X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2FMakefile;fp=qchess%2FMakefile;h=2ad3fefe0ff88665f8af00fe8e25317385f7fcfa;hp=0000000000000000000000000000000000000000;hb=707e794d26062516eb4188d1cd2902929613c46b;hpb=bfa63f1a2dc9c66399f8159857d4cc54f038eaa2 diff --git a/qchess/Makefile b/qchess/Makefile new file mode 100644 index 0000000..2ad3fef --- /dev/null +++ b/qchess/Makefile @@ -0,0 +1,16 @@ +# Makefile that builds qchess.py from the component files + +TARGET = qchess.py +COMPONENTS = piece.py board.py player.py network.py thread_util.py game.py graphics.py main.py +#COMPONENTS=$(shell ls *.py | tr '\t' '\n' | grep -v $(TARGET)) + +$(TARGET) : $(COMPONENTS) + echo "#!/usr/bin/python -u" > $(TARGET) + for f in $(COMPONENTS); do echo "# +++ $$f +++ #" >> $(TARGET); cat $$f >> $(TARGET); echo "# --- $$f --- #" >> $(TARGET); done + echo "# EOF - created from make on $$(date)" >> $(TARGET) + chmod u+x $(TARGET) + +clean : + rm -f *~ + rm -f *.pyc + rm -f $(TARGET)