From: Eric Price Date: Sat, 29 Mar 2008 03:09:08 +0000 (-0400) Subject: Fix the Makefile to recursively apply make. X-Git-Tag: sipb-xen-www/1~6 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/03ec8cfff08c8a3c507425d9ecdc95a48ac9bc81?ds=sidebyside Fix the Makefile to recursively apply make. svn path=/trunk/packages/sipb-xen-www/; revision=304 --- 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