12345678910111213141516171819202122232425262728293031323334353637 |
- # DT Home
- #
- # Douglas Thrift
- #
- # GNUmakefile
- ifeq ($(OS),Windows_NT)
- ATTRIB := attrib
- RM_F := del /F /A
- TOUCH := python touch.py
- else
- ATTRIB := true
- RM_F := rm -f
- 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 pkg.py install -r requirements.txt
- $(TOUCH) $@
- $(ATTRIB) +H $@
- %.pyc: %.py
- python -m py_compile $<
- clean:
- -$(RM_F) .requirements $(pyc)
|