| default: |
| |
| PREFIX=/ |
| BINDIR=$(DESTDIR)$(PREFIX)/bin |
| WWWDIR=$(DESTDIR)$(PREFIX)/usr/craftui |
| PYTHON?=python |
| PY=$(wildcard *.py) |
| |
| SKIPPY=png.py |
| LINTPY=$(filter-out $(SKIPPY), $(PY)) |
| |
| all: |
| |
| install: |
| mkdir -p $(BINDIR) $(WWWDIR) |
| cp craftui craftui.py png.py $(BINDIR) |
| cp -rp www $(WWWDIR) |
| |
| install-libs: |
| @echo "No libs to install." |
| |
| .sim%.extracted: sim%.tgz |
| -chmod -R +w sim$* |
| rm -rf sim$* |
| rsync -av sim-tools/ sim$* |
| tar xf sim$*.tgz -C sim$* |
| touch $@ |
| |
| test: .sim1.extracted .sim2.extracted lint |
| set -e; \ |
| for n in $(wildcard ./*_test.*); do \ |
| echo; \ |
| echo "Testing $$n"; \ |
| $$n; \ |
| done |
| |
| clean: |
| rm -rf *.pyc |
| |
| lint: |
| for n in $(LINTPY); do gpylint $$n || exit 1; done |