|
@@ -0,0 +1,37 @@
|
|
|
+# 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)
|