From: Eric Anholt Date: Tue, 12 Jun 2012 19:51:32 +0000 (-0700) Subject: mesa: Move GL header installation to automake. X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~1517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d51ac84fd4c6d0fcf4d5112af2eb2c12e186b63;p=profile%2Fivi%2Fmesa.git mesa: Move GL header installation to automake. This cuts some cruft related to osmesa where we were being careful to not install headers twice. --- diff --git a/configure.ac b/configure.ac index b2f561d..879a507 100644 --- a/configure.ac +++ b/configure.ac @@ -879,12 +879,7 @@ if test "x$enable_dri" = xyes; then fi if test "x$enable_osmesa" = xyes; then - # the empty space matters for osmesa... (see src/mesa/Makefile) - if test -n "$DRIVER_DIRS"; then - DRIVER_DIRS="$DRIVER_DIRS osmesa" - else - DRIVER_DIRS="osmesa" - fi + DRIVER_DIRS="$DRIVER_DIRS osmesa" fi AC_SUBST([SRC_DIRS]) diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index 6a2d425..5e764cd 100644 --- a/src/mesa/Makefile.am +++ b/src/mesa/Makefile.am @@ -21,6 +21,9 @@ SUBDIRS = x86 x86-64 . libdricore drivers +gldir = $(includedir)/GL +gl_HEADERS = $(top_srcdir)/include/GL/*.h + all-local: $(MAKE) -f Makefile.old diff --git a/src/mesa/Makefile.old b/src/mesa/Makefile.old index 7a7d651..b7f905c 100644 --- a/src/mesa/Makefile.old +++ b/src/mesa/Makefile.old @@ -122,21 +122,10 @@ depend: $(ALL_FILES) main/git_sha1.h install: default $(DRICORE_INSTALL_TARGET) @for driver in $(DRIVER_DIRS) ; do \ case "$$driver" in \ - osmesa) if [ "$(DRIVER_DIRS)" = osmesa ]; then \ - $(MAKE) -f Makefile.old install-headers install-osmesa || exit 1 ; \ - else \ - $(MAKE) -f Makefile.old install-osmesa || exit 1 ; \ - fi ;; \ - dri) $(MAKE) -f Makefile.old install-headers || exit 1 ;; \ - *) $(MAKE) -f Makefile.old install-headers || exit 1 ;; \ + osmesa) $(MAKE) -f Makefile.old install-osmesa || exit 1 ;; \ esac ; \ done -install-headers: - $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL - $(INSTALL) -m 644 $(TOP)/include/GL/*.h \ - $(DESTDIR)$(INSTALL_INC_DIR)/GL - install-osmesa: default $(MINSTALL) $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_GLOB) \ $(DESTDIR)$(INSTALL_LIB_DIR)