From 03ec8cfff08c8a3c507425d9ecdc95a48ac9bc81 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Fri, 28 Mar 2008 23:09:08 -0400 Subject: [PATCH] Fix the Makefile to recursively apply make. svn path=/trunk/packages/sipb-xen-www/; revision=304 --- code/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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 -- 1.7.9.5