X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e37dd15bbf8683bab8454ea0eec8e9968ce982b2..49367cafdfc40dd28e306aabe5ccc5787aab915a:/code/Makefile?ds=sidebyside diff --git a/code/Makefile b/code/Makefile index aa083e2..582293f 100644 --- a/code/Makefile +++ b/code/Makefile @@ -1,13 +1,11 @@ -TEMPLATES=$(wildcard *.tmpl) -OUTPUTS=$(TEMPLATES:.tmpl=.py) +DIRS = templates -all: ${OUTPUTS} - -%.py: %.tmpl - cheetah compile $< - -#${OUTPUTS}:${TEMPLATES} -# cheetah compile $^ +all: + 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