Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 623 Bytes
# Makefile to control building of Python code and upload to GM862
# Copyright (c) 2010 John Graham-Cumming
# all: Builds all out of date pyo files
# upload: Uploads to GM862
SRC :=
OBJ := $(
@echo Making $@
@python -O -m py_compile $<
.PHONY: all clean
all: $(OBJ)
@rm $(OBJ)
@rm $(UPL)
TO_UPL := $(OBJ)
UPL := $(addprefix .upload-,$(TO_UPL))
.PHONY: upload
upload: $(UPL)
.upload-%: %
@echo Uploading $<
@./ $< $(if $(subst $(firstword $(TO_UPL)),,$<),,1)
@touch $@
.PHONY: test