[gimp] app/tests: Create gimpdir-output properly



commit 985f2ae093d9b0645ac9b5011b0934e3025f6967
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Jan 30 07:17:35 2010 +0100

    app/tests: Create gimpdir-output properly
    
    The rule check-local is run after the tests themselves are run, so
    make the tests depend on this directory to be created instead.

 app/tests/Makefile.am |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/app/tests/Makefile.am b/app/tests/Makefile.am
index 4cfe9a0..a58fc28 100644
--- a/app/tests/Makefile.am
+++ b/app/tests/Makefile.am
@@ -21,6 +21,8 @@ TESTS = \
 
 EXTRA_PROGRAMS = $(TESTS)
 
+$(TESTS): gimpdir-output
+
 noinst_LIBRARIES = libgimpapptestutils.a
 libgimpapptestutils_a_SOURCES = \
 	gimp-app-test-utils.c	\
@@ -112,14 +114,11 @@ LDADD = \
 	$(INTLLIBS)						\
 	$(RT_LIBS)
 
-check-local:
-	@mkdir -p gimpdir-output
-	@mkdir -p gimpdir-output/brushes
-	@mkdir -p gimpdir-output/patterns
-	@mkdir -p gimpdir-output/gradients
+gimpdir-output:
+	mkdir -p gimpdir-output
+	mkdir -p gimpdir-output/brushes
+	mkdir -p gimpdir-output/patterns
+	mkdir -p gimpdir-output/gradients
 
 clean-local:
-	@rm -rf gimpdir-output
-	@rm -rf gimpdir-output/brushes
-	@rm -rf gimpdir-output/patterns
-	@rm -rf gimpdir-output/gradients
+	rm -rf gimpdir-output



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]