Lots of stuff happened
[progcomp2013.git] / qchess / Makefile
diff --git a/qchess/Makefile b/qchess/Makefile
new file mode 100644 (file)
index 0000000..2ad3fef
--- /dev/null
@@ -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)

UCC git Repository :: git.ucc.asn.au