summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-11-28 10:36:19 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2012-12-03 22:46:39 +0100
commite8f29e2531a9d2a88da944276ffd396e161deb20 (patch)
tree7f5ca9e57d11e8edf2c768e84b399f6242121451
parent97b30ae5e77d5e36d127d02b247d6d41b8e1c8c3 (diff)
downloadgobject-introspection-e8f29e2531a9d2a88da944276ffd396e161deb20.tar.gz
tests: fix incremental build
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
-rw-r--r--configure.ac1
-rw-r--r--tests/doctool/Makefile.am4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f6fd5a06..74a44de6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
diff --git a/tests/doctool/Makefile.am b/tests/doctool/Makefile.am
index 60183d00..9ef86f25 100644
--- a/tests/doctool/Makefile.am
+++ b/tests/doctool/Makefile.am
@@ -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