123456789101112131415161718192021222324252627282930313233343536373839 |
- # 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)
|