mesa: Move GL header installation to automake.
authorEric Anholt <eric@anholt.net>
Tue, 12 Jun 2012 19:51:32 +0000 (12:51 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Jun 2012 17:10:46 +0000 (10:10 -0700)
This cuts some cruft related to osmesa where we were being careful to
not install headers twice.

configure.ac
src/mesa/Makefile.am
src/mesa/Makefile.old

index b2f561d..879a507 100644 (file)
@@ -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])
index 6a2d425..5e764cd 100644 (file)
@@ -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
 
index 7a7d651..b7f905c 100644 (file)
@@ -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)