diff options
author | Brian Paul <[email protected]> | 2008-06-06 15:59:54 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-06 15:59:54 -0600 |
commit | f374734d61011acc2d7b4e5f390d806603a833bd (patch) | |
tree | f6b51c0ed8b1ac4d244186a1f2d2d63eac0665bf /src/egl/drivers | |
parent | 8dafe470fc29cada5f3beab114e2be19fd01dabe (diff) |
egl: improved Makefile
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/Makefile | 20 |
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 |