]> granicus.if.org Git - libexpat/commitdiff
Revert previous change and use an alternate approach, this time actually
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Tue, 2 Oct 2001 16:40:17 +0000 (16:40 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Tue, 2 Oct 2001 16:40:17 +0000 (16:40 +0000)
tested on one of the platforms that exhibited the problem this tries to
fix.  Solution contributed by Michael C. Maggio; thanks!

expat/Makefile.in

index 97613ed388ebc9b0fdd3b86577f160fd2252d247..87157af834b05f1e93b5eaf38f8c6e864a324490 100644 (file)
@@ -52,26 +52,21 @@ CC = @CC@
 
 LIBTOOL = @LIBTOOL@
 
+SUBDIRS = lib examples xmlwf
 CONFIG_HEADERS = config.h
 
 APIHEADER = expat.h
 LIBRARY = libexpat.la
 
 
-default:  library xmlwf
+default:  lib xmlwf
 
-buildlib: library
+buildlib: lib
 
-all: library wfchecker samples
+all: $(SUBDIRS)
 
-library:
-       cd lib && $(MAKE)
-
-wfchecker:
-       cd xmlwf && $(MAKE)
-
-samples:
-       cd examples && $(MAKE)
+$(SUBDIRS)::
+       cd $@ && $(MAKE)
 
 clean:
        cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
@@ -88,7 +83,7 @@ extraclean: distclean
        rm -f conftools/config.guess conftools/config.sub
        rm -f conftools/ltconfig conftools/ltmain.sh
 
-check: all
+check: $(SUBDIRS)
        cd tests && $(MAKE) check
 
 install: xmlwf/xmlwf lib/$(LIBRARY) lib/$(APIHEADER)
@@ -102,7 +97,7 @@ uninstall:
        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
        rm -f $(libdir)/$(APIHEADER)
 
-.PHONY: buildlib all library wfchecker samples \
+.PHONY: buildlib all $(SUBDIRS) \
        clean distclean extraclean maintainer-clean \
        dist distdir \
        install uninstall