help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recursive Makefile


From: bL1nK
Subject: Recursive Makefile
Date: Fri, 12 Jan 2007 16:42:10 +0100

Hello,

i have a problem to write a "master-makefile" for other makefiles in 2 subdirs.

mastermakefile in maindir:

MODULES = dira dirb

all:
        for dir in $(MODULES); do \
        (cd $$dir; $(MAKE) all); \
        done 
clean:
        for dir in $(MODULES); do \
        (cd $$dir; $(MAKE) clean); \
        done 

in the subdirs are makefiles with an all-routine and a clean-routine, but if i 
want to clean with the mastermakefile all generated files in the 2 subdirs the 
makefiles in the subdirs didnt get the delete parameter.


sorry for my bad english ;)

blink

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]