1 # Makefile that builds qchess.py from the component files
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))
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)