# DT Home # # Douglas Thrift # # GNUmakefile python := python ifeq ($(OS),Windows_NT) attrib := attrib rm := $(python) mk/rm.py touch := $(python) mk/touch.py else attrib := true rm := rm touch := touch endif pyc := $(patsubst %.py,%.pyc,$(wildcard *.py */*.py)) .PHONY: all requirements clean all: dthome.wsgi dthome.wsgi: .requirements $(pyc) $(wildcard views/*.tpl) $(touch) $@ requirements: .requirements .requirements: requirements.txt $(python) mk/pkg.py install -r requirements.txt $(touch) $@ $(attrib) +H $@ %.pyc: %.py $(python) -m py_compile $< clean: -$(rm) -fv .requirements $(pyc)