X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e37dd15bbf8683bab8454ea0eec8e9968ce982b2..134d4e881d540fbe492687aac00b8aab2ce7c728:/code/Makefile diff --git a/code/Makefile b/code/Makefile index aa083e2..b114e86 100644 --- a/code/Makefile +++ b/code/Makefile @@ -1,13 +1,20 @@ -TEMPLATES=$(wildcard *.tmpl) -OUTPUTS=$(TEMPLATES:.tmpl=.py) +DIRS = templates -all: ${OUTPUTS} +all: kill chmod compile -%.py: %.tmpl - cheetah compile $< +chmod: + chgrp -R invirt . 2>/dev/null || true + chmod -R g+w . 2>/dev/null || true -#${OUTPUTS}:${TEMPLATES} -# cheetah compile $^ +kill: + -pkill main.fcgi + +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