You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/03/11 14:03:40 UTC

cvs commit: apr-util/xml/expat Makefile.in

trawick     01/03/11 05:03:40

  Modified:    xml/expat Makefile.in
  Log:
  use the standard technique for building subdirs; the previous technique,
  as shown in this simple example, does not work on Tru64 (or -- 80% sure --
  AIX)
  
  all: mydir
  
  mydir:
          cd mydir; make
  
  if mydir exists, it refuses to build it
  
  Revision  Changes    Path
  1.2       +6 -4      apr-util/xml/expat/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/apr-util/xml/expat/Makefile.in,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.in	2001/02/28 14:41:24	1.1
  +++ Makefile.in	2001/03/11 13:03:39	1.2
  @@ -83,7 +83,7 @@
   DISTDIR = $(PACKAGE)-$(VERSION)
   DISTRIBUTION = $(DISTDIR).tar.gz
   
  -all: $(SUBDIRS)
  +all: build-subdirs
   
   .PHONY: all $(SUBDIRS) clean distclean maintainer-clean dist install \
           uninstall distdir
  @@ -105,9 +105,11 @@
   	CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
   	$(SHELL) ./config.status
   
  -$(SUBDIRS): config.status
  -	cd $@; $(MAKE)
  -
  +build-subdirs:
  +	@list='$(SUBDIRS)'; \
  +	for dir in $$list; do \
  +	  cd $$dir; $(MAKE); cd ..; \
  +	done
   
   clean:
   	@list='$(SUBDIRS)'; for dir in $$list; do \
  
  
  

Re: cvs commit: apr-util/xml/expat Makefile.in

Posted by Jeff Trawick <tr...@bellsouth.net>.
Kevin Pilch-Bisson <ke...@pilch-bisson.net> writes:

> On Sun, Mar 11, 2001 at 01:03:40PM -0000, trawick@apache.org wrote:
> >   -all: $(SUBDIRS)
> >   +all: build-subdirs
> >    
> >    .PHONY: all $(SUBDIRS) clean distclean maintainer-clean dist install \
> >            uninstall distdir
> 
> Shouldn't you add build-subdirs to .PHONY now?

Sure...  I'll do that now.

Thanks,

Jeff

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: cvs commit: apr-util/xml/expat Makefile.in

Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Sun, Mar 11, 2001 at 01:03:40PM -0000, trawick@apache.org wrote:
>   -all: $(SUBDIRS)
>   +all: build-subdirs
>    
>    .PHONY: all $(SUBDIRS) clean distclean maintainer-clean dist install \
>            uninstall distdir

Shouldn't you add build-subdirs to .PHONY now?

>   @@ -105,9 +105,11 @@
>    	CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
>    	$(SHELL) ./config.status
>    
>   -$(SUBDIRS): config.status
>   -	cd $@; $(MAKE)
>   -
>   +build-subdirs:
>   +	@list='$(SUBDIRS)'; \
>   +	for dir in $$list; do \
>   +	  cd $$dir; $(MAKE); cd ..; \
>   +	done
>    
>    clean:
>    	@list='$(SUBDIRS)'; for dir in $$list; do \
>   
>   
>   
> 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: cvs commit: apr-util/xml/expat Makefile.in

Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Sun, Mar 11, 2001 at 01:03:40PM -0000, trawick@apache.org wrote:
>   -all: $(SUBDIRS)
>   +all: build-subdirs
>    
>    .PHONY: all $(SUBDIRS) clean distclean maintainer-clean dist install \
>            uninstall distdir

Shouldn't you add build-subdirs to .PHONY now?

>   @@ -105,9 +105,11 @@
>    	CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
>    	$(SHELL) ./config.status
>    
>   -$(SUBDIRS): config.status
>   -	cd $@; $(MAKE)
>   -
>   +build-subdirs:
>   +	@list='$(SUBDIRS)'; \
>   +	for dir in $$list; do \
>   +	  cd $$dir; $(MAKE); cd ..; \
>   +	done
>    
>    clean:
>    	@list='$(SUBDIRS)'; for dir in $$list; do \
>   
>   
>   
> 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~