From new-httpd-return-3178-apmail-new-httpd-archive=apache.org@apache.org Mon May 01 09:16:38 2000 Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 51403 invoked by uid 500); 1 May 2000 09:16:33 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 51391 invoked from network); 1 May 2000 09:16:28 -0000 Date: Mon, 1 May 2000 11:11:39 +0200 From: "Ralf S. Engelschall" To: new-httpd@apache.org Subject: Re: cvs commit: apache-2.0/src/lib/apr/time/unix Makefile.in Message-ID: <20000501111139.A89493@engelschall.com> Reply-To: rse@engelschall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.12i Organization: Engelschall, Germany. X-Web-Homepage: http://www.engelschall.com/ X-PGP-Public-Key: https://www.engelschall.com/ho/rse/pgprse.asc X-PGP-Fingerprint: 00 C9 21 8E D1 AB 70 37 DD 67 A2 3A 0A 6F 8D A5 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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