[gnome-devel-docs] platform-demos: Create directory when building example GSource code



commit 7a1c373c45f72c83a9d3829f348fd2606f9b5994
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Mar 4 09:23:01 2015 +0000

    platform-demos: Create directory when building example GSource code
    
    This fixes a srcdir ≠ builddir issue when running distcheck.

 platform-demos/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index fb5c9cc..a0c23d9 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -490,6 +490,7 @@ WARN_CFLAGS = -Wall -Wextra -Wno-unused-parameter
 
 if BUILD_TESTS
 C/samples/test-custom-gsource: C/samples/test-custom-gsource.c C/samples/example-custom-gsource.c
+       $(MKDIR_P) "$(dir $@)"
        $(CC) -o $@ $(WARN_CFLAGS) $(GLIB_CFLAGS) $(GLIB_LIBS) $<
 
 check: C/samples/test-custom-gsource


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