Make it easy to kill fcgi processes.
[invirt/packages/invirt-web.git] / code / Makefile
index aa083e2..8ff936c 100644 (file)
@@ -1,13 +1,16 @@
-TEMPLATES=$(wildcard *.tmpl)
-OUTPUTS=$(TEMPLATES:.tmpl=.py)
+DIRS = templates
 
-all: ${OUTPUTS}
+all: kill compile
 
-%.py: %.tmpl
-       cheetah compile $<
+kill:
+       wget http://xvm.mit.edu/kill.cgi -O /dev/null -nv
 
-#${OUTPUTS}:${TEMPLATES}
-#      cheetah compile $^
+compile:
+       for dir in $(DIRS); do \
+               (cd $$dir; $(MAKE) all); \
+       done
 
 clean:
-       @rm -f ${OUTPUTS} *.pyo *.pyc *.py.bak
+       for dir in $(DIRS); do \
+               (cd $$dir; $(MAKE) clean); \
+       done