blob: dbb20828e7e0711f50e6fd20f1d3882c1aa7cb9d [file] [log] [blame]
default:
PREFIX=/
BINDIR=$(DESTDIR)$(PREFIX)/bin
WWWDIR=$(DESTDIR)$(PREFIX)/usr/craftui
PYTHON?=python
all:
install:
mkdir -p $(BINDIR) $(WWWDIR)
cp craftui craftui.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 *.py; do gpylint $$n || exit 1; done