clover: Fix build with libclang v3.2
[mesa.git] / src / gallium / state_trackers / Makefile
index 265ca468c2d0b36348e3fa2c07386d5994420aaf..d5162c17507e25a8af17adf38c25439eaacb2bf4 100644 (file)
@@ -17,9 +17,13 @@ subdirs:
 
 
 clean:
-       rm -f `find . -name \*.[oa]`
+       rm -f `find . -regex '.*\.l?[oa]'`
        rm -f `find . -name depend`
 
 
-# Dummy install target
 install:
+       @for dir in $(SUBDIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) $@) || exit 1 ; \
+               fi \
+       done