It works!
[progcomp2013.git] / qchess / src / Makefile
1 # Makefile that builds qchess.py from the component files
2
3 TARGET = qchess.py
4 COMPONENTS = piece.py board.py player.py agent_bishop.py timeout_player.py network.py thread_util.py log.py game.py images.py graphics.py main.py
5 #COMPONENTS=$(shell ls *.py | tr '\t' '\n' | grep -v $(TARGET))
6
7 $(TARGET) : $(COMPONENTS)
8         echo "#!/usr/bin/python -u" > $(TARGET)
9         for f in $(COMPONENTS); do echo "# +++ $$f +++ #" >> ../$(TARGET); cat $$f >> $(TARGET); echo "# --- $$f --- #" >> $(TARGET); done
10         echo "# EOF - created from make on $$(date)" >> $(TARGET)
11         chmod u+x $(TARGET)
12
13 clean :
14         rm -f *~
15         rm -f *.pyc
16         rm -f $(TARGET)

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