Use GNU AS label aliasing, if available. This must be enabled by adding
[mesa.git] / progs / Makefile
index f925de5860b8c42d0dbc431f5f465f4a42e96963..858d628c0a597f5738409374fc9e515d028650e5 100644 (file)
@@ -7,21 +7,24 @@ include $(TOP)/configs/current
 SUBDIRS = $(PROGRAM_DIRS)
 
 
-default: $(TOP)/configs/current
+default: message subdirs
+
+
+message:
+       @echo "Making programs for" $(CONFIG_NAME)
+
+
+subdirs:
        @for dir in $(SUBDIRS) ; do \
                if [ -d $$dir ] ; then \
-                       pushd $$dir ; \
-                       make ; \
-                       popd ; \
+                       (cd $$dir ; $(MAKE)) || exit 1 ; \
                fi \
        done
 
 
 clean:
-       @for dir in $(SUBDIRS) ; do \
+       @for dir in $(SUBDIRS) tests ; do \
                if [ -d $$dir ] ; then \
-                       pushd $$dir ; \
-                       make clean; \
-                       popd ; \
+                       (cd $$dir ; $(MAKE) clean) ; \
                fi \
        done