new drivers/Makefile with simple default/clean/install rules
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 18:09:55 +0000 (12:09 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 18:09:55 +0000 (12:09 -0600)
src/mesa/drivers/Makefile [new file with mode: 0644]

diff --git a/src/mesa/drivers/Makefile b/src/mesa/drivers/Makefile
new file mode 100644 (file)
index 0000000..c599841
--- /dev/null
@@ -0,0 +1,29 @@
+# src/mesa/drivers/Makefile
+
+TOP = ../../..
+include $(TOP)/configs/current
+
+
+default:
+       @for dir in $(DRIVER_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE)) || exit 1; \
+               fi \
+       done
+
+
+clean:
+       @for dir in $(DRIVER_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) clean) || exit 1; \
+               fi \
+       done
+
+
+install:
+       @for dir in $(DRIVER_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) install) || exit 1; \
+               fi \
+       done
+