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 \
  
  
  

Reply via email to