automake: Convert src/Makefile to automake.
authorEric Anholt <eric@anholt.net>
Tue, 15 May 2012 17:21:31 +0000 (10:21 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Jun 2012 16:28:00 +0000 (09:28 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configure.ac
src/.gitignore [new file with mode: 0644]
src/Makefile [deleted file]
src/Makefile.am [new file with mode: 0644]

index 0801c6c9142a19ea39058da5f13397f83f94b586..2e614d544eac524bcc59b000e3957dd738569272 100644 (file)
@@ -2131,6 +2131,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
 dnl Substitute the config
 AC_CONFIG_FILES([configs/autoconf
                Makefile
+               src/Makefile
                src/gallium/auxiliary/pipe-loader/Makefile
                src/gallium/state_trackers/clover/Makefile
                src/gallium/drivers/Makefile
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100644 (file)
index 0000000..5fc607b
--- /dev/null
@@ -0,0 +1 @@
+/Makefile
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644 (file)
index 4f65da0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# src/Makefile
-
-TOP = ..
-
-include $(TOP)/configs/current
-
-SUBDIRS = $(SRC_DIRS)
-
-
-default: message $(TOP)/$(LIB_DIR) subdirs
-
-
-message:
-       @echo "Making sources for" $(CONFIG_NAME)
-
-
-subdirs:
-       @for dir in $(SUBDIRS) ; do \
-               if [ -d $$dir ] ; then \
-                       (cd $$dir && $(MAKE)) || exit 1; \
-               fi \
-       done
-
-install: $(TOP)/$(LIB_DIR)
-       @for dir in $(SUBDIRS) ; do \
-               if [ -d $$dir ] ; then \
-                       (cd $$dir && $(MAKE) install) || exit 1 ; \
-               fi \
-       done
-
-$(TOP)/$(LIB_DIR):
-       -@test -d $(TOP)/$(LIB_DIR) || mkdir -p $(TOP)/$(LIB_DIR)
-
-
-clean:
-       -@for dir in $(SUBDIRS) ; do \
-               if [ -d $$dir ] ; then \
-                       (cd $$dir && $(MAKE) clean) ; \
-               fi \
-       done
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644 (file)
index 0000000..d6a7946
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS=$(SRC_DIRS)
+
+all-local:
+       $(MKDIR_P) $(top_builddir)/$(LIB_DIR)