httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Murcko <ch...@topsail.org>
Subject Re: [PATCH] "make clean" bombs if no subdirectory modules are used
Date Fri, 21 Mar 1997 23:54:35 GMT
Roy T. Fielding wrote:
> 
> In message <333262B7.6201DD56@topsail.org>, Chuck Murcko writes:
> >What I have here is the generic BSD make. It looks like the %.build is
> >expanding OK, just that the target seems to be an orphan. It looks like
> >a .SUFFIX problem.
> >
> >What if you just do this?
> >
> >clean:
> >        (if [ "$(MODULES)" != "" ]; then\
> >             for dir in $(MODULES); do \
> >                cd $$dir; $(MAKE) clean; \
> >                cd ..; \
> >             done \
> >         fi)
> >
> >and you can do the same for the default target if that's also a problem
> >when $(MODULES) is empty.
> 
> That's what I tried to do first -- it doesn't work because the shell
> interprets the entire command and pukes on the "unexpected ;" before
> it executes the if.
> 
> Here is another version that may be more portable with old makes.
> 
Yep. The .SUFFIXES assignment was all that was needed. Funny, you have
an old sh that barfs on the ; and I have an old make that needs the
.SUFFIXES jammed doen its throat.

+1.
-- 
chuck
Chuck Murcko
The Topsail Group, West Chester PA USA
chuck@topsail.org

Mime
View raw message