[mm-common] Automatically create private/ output directory



commit dcc80f409d864e9ee3d049236b363b7debf62e7d
Author: Daniel Elstner <daniel kitta gmail com>
Date:   Fri Sep 18 00:59:10 2009 +0200

    Automatically create private/ output directory
    
    * build/generate-binding.am (binding_mkdirs): In addition to the
    .stamps/ subdirectory, also create the private headers directory
    automatically if it does not exist at build time.

 build/generate-binding.am |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/build/generate-binding.am b/build/generate-binding.am
index 12c1296..b2e71ef 100644
--- a/build/generate-binding.am
+++ b/build/generate-binding.am
@@ -57,11 +57,14 @@ gmmproc       ?= $(PERL) -I"$(GMMPROC_DIR)/pm" -- "$(GMMPROC_DIR)/gmmproc"
 gen_wrap_init ?= $(PERL) -- "$(GMMPROC_DIR)/generate_wrap_init.pl"
 gmmproc_flags ?= -I $(codegen_m4_srcdir) --defs $(srcdir)
 
+# Automatically created output directories.
+binding_mkdirs = $(binding_stampdir) $(binding_outputdir)/private
+
 # Declare the built sources main targets.
 all-local: $(binding_stampfiles) $(other_built_sources)
 
-# Create the .stamps/ subdirectory if it does not exist already.
-$(binding_stampdir):
+# Create the output directories if they do not exist already.
+$(binding_mkdirs):
 	$(MKDIR_P) $@
 
 # Generate the wrap_init.cc file using generate_wrap_init.pl.
@@ -69,7 +72,7 @@ $(binding_outputdir)/wrap_init.cc: $(binding_relfiles_hg) $(srcdir)/Makefile.in
 	$(gen_wrap_init) $(wrap_init_flags) $(binding_relfiles_hg) >$@
 
 # Run the gmmproc code generator to produce the C++ binding code.
-$(binding_stampdir)/%.stamp: %.hg %.ccg $(gmmproc_dependencies) | $(binding_stampdir)
+$(binding_stampdir)/%.stamp: %.hg %.ccg $(gmmproc_dependencies) | $(binding_mkdirs)
 	@: >$@
 	$(gmmproc) $(gmmproc_flags) $(notdir $*) $(srcdir) $(binding_outputdir)
 



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