summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-06 15:59:54 -0600
committerBrian Paul <[email protected]>2008-06-06 15:59:54 -0600
commitf374734d61011acc2d7b4e5f390d806603a833bd (patch)
treef6b51c0ed8b1ac4d244186a1f2d2d63eac0665bf /src/egl/drivers
parent8dafe470fc29cada5f3beab114e2be19fd01dabe (diff)
egl: improved Makefile
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/egl/drivers/Makefile b/src/egl/drivers/Makefile
index 837626e3d66..a2d67ca5a8a 100644
--- a/src/egl/drivers/Makefile
+++ b/src/egl/drivers/Makefile
@@ -1,8 +1,10 @@
# src/egl/drivers/Makefile
TOP = ../../..
+include $(TOP)/configs/current
-SUBDIRS = demo dri
+
+SUBDIRS = demo dri xdri
default: conditional_subdirs
@@ -10,19 +12,17 @@ default: conditional_subdirs
# depending on $DRIVER_DIRS...
conditional_subdirs:
- @echo "DRIVER_DIRS = " $(DRIVER_DIRS)
- @case "$$DRIVER_DIRS" in \
- dri) $(MAKE) dri_subdir || exit 1 ;; \
- *) ;; \
- esac;
-
+ @if [ "${DRIVER_DIRS}" = "dri" ] ; then \
+ $(MAKE) dri_subdirs ; \
+ fi
-dri_subdir:
- (cd dri ; $(MAKE)) || exit 1 ; \
+dri_subdirs:
+ @ (cd dri ; $(MAKE)) || exit 1
+ @ (cd xdri ; $(MAKE)) || exit 1
demo_subdir:
- (cd demo ; $(MAKE)) || exit 1 ; \
+ @ (cd demo ; $(MAKE)) || exit 1