tests: fix incremental build
authorDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 28 Nov 2012 09:36:19 +0000 (10:36 +0100)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Mon, 3 Dec 2012 21:46:39 +0000 (22:46 +0100)
Running make multiple times caused "mkdir" to complain
that it could not create those directories because they
where already there...

https://bugzilla.gnome.org/show_bug.cgi?id=689570

configure.ac
tests/doctool/Makefile.am

index f6fd5a0..74a44de 100644 (file)
@@ -37,6 +37,7 @@ AM_CONDITIONAL(OS_WIN32, [test "x$os_win32" = "xyes"])
 # Checks for programs.
 AC_PROG_CC
 AM_PROG_CC_C_O
+AC_PROG_MKDIR_P
 
 # Initialize libtool
 LT_PREREQ([2.2])
index 60183d0..9ef86f2 100644 (file)
@@ -29,10 +29,10 @@ DocExamples_1_0_gir_FILES = $(libdocexamples_la_SOURCES)
 GIRS += DocExamples-1.0.gir
 
 %-C: %.gir
-       mkdir $*-C ; rm -f $*-C/*.page ; $(INTROSPECTION_DOCTOOL) --language C $*.gir -o $*-C/ && echo "  GEN  $*-C/index.page"
+       $(MKDIR_P) $*-C ; rm -f $*-C/*.page ; $(INTROSPECTION_DOCTOOL) --language C $*.gir -o $*-C/ && echo "  GEN  $*-C/index.page"
 
 %-Python: %.gir
-       mkdir $*-Python ; rm -f $*-Python/*.page ; $(INTROSPECTION_DOCTOOL) --language Python $*.gir -o $*-Python/ && echo "  GEN  $*-Python/index.page"
+       $(MKDIR_P) $*-Python ; rm -f $*-Python/*.page ; $(INTROSPECTION_DOCTOOL) --language Python $*.gir -o $*-Python/ && echo "  GEN  $*-Python/index.page"
 
 %-C.page.check: %-C
        @diff -u -U 10 $(srcdir)/$*-C-expected $*-C && echo "  TEST  $*-C" && rm -rf $*-C