httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: cvs commit: apache-2.0/src/lib/apr/time/unix Makefile.in
Date Mon, 01 May 2000 09:11:39 GMT

In article <20000430175834.26171.qmail@locus.apache.org> you wrote:

> [...]
>    clean:
>    	$(RM) -f *.o *.a *.so
>   -	cd mm; $(MAKE) clean; cd ..
>   +	(cd mm && $(MAKE) clean)
>    
>    distclean: clean
>    	-$(RM) -f Makefile
>   -	cd mm; $(MAKE) distclean; cd ..
>   +	(cd mm && $(MAKE) distclean)
>    
>   -$(OBJS): Makefile
>    
>    $(LIB): $(OBJS)
>    	$(RM) -f $@
>   -	cd mm; $(MAKE); cd ..
>   +	(cd mm && $(MAKE) libmm.la)
>    	cp mm/mm_global.o mm/mm_alloc.o mm/mm_core.o mm/mm_lib.o mm/mm_vers.o .
>    	$(AR) cr $@ $(OBJS)
>    	$(RANLIB) $@

Keep in mind that _both_ "cd mm; $(MAKE) clean; cd .." and "(cd mm
&& $(MAKE) clean)" are overkill. Unless you're doing the directory
step-down in an embedded shell-loop, you don't have to care about the
working directory. Because the command is executed implicitly in a
subshell by Make, so a simple "cd mm && $(MAKE) clean" (no subshell and
no "cd ..") is sufficient here. Same for the other two instances.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message