From 7edbf4b3232eef7dac47a901829c586b61d8cbd2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 15 May 2012 10:21:31 -0700 Subject: automake: Convert src/Makefile to automake. Reviewed-by: Kenneth Graunke --- src/.gitignore | 1 + src/Makefile | 40 ---------------------------------------- src/Makefile.am | 4 ++++ 3 files changed, 5 insertions(+), 40 deletions(-) create mode 100644 src/.gitignore delete mode 100644 src/Makefile create mode 100644 src/Makefile.am (limited to 'src') diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 00000000000..5fc607b9e2f --- /dev/null +++ b/src/.gitignore @@ -0,0 +1 @@ +/Makefile diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 4f65da0e3b7..00000000000 --- a/src/Makefile +++ /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 index 00000000000..d6a7946ef77 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,4 @@ +SUBDIRS=$(SRC_DIRS) + +all-local: + $(MKDIR_P) $(top_builddir)/$(LIB_DIR) -- cgit v1.2.3