~ubuntu-branches/ubuntu/karmic/glibmm2.4/karmic

« back to all changes in this revision

Viewing changes to build/generate-binding.am

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 11:12:24 UTC
  • mfrom: (1.2.41 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922111224-p1r8bxw835x23l07
Tags: 2.22.1-0ubuntu1
* New upstream release (LP: #434371)
  - Fix KeyFile build with exceptions disabled
  - Re-enable input file line markers in gmmproc
  - Fix broken test for empty _WRAP_METHOD argument
  - Allow the C documentation to be overridden
  - Slightly clean up gross Perl code in gmmproc.in
  - Correctly quote the extracted comment for M4
  - Enable verbose output of autoreconf
  - Do not complain about missing docs_override.xml
  - Support Automake silent rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
# Lists of qualified file names relative to the current directory.
41
41
binding_relfiles_m4 = $(addprefix $(codegen_m4_srcdir)/,$(files_codegen_m4))
42
42
binding_relfiles_hg = $(addprefix $(srcdir)/,$(files_hg))
43
 
binding_stampfiles  = $(files_hg:%.hg=$(binding_stampdir)/%.stamp)
 
43
binding_stampfiles  = $(patsubst %.hg,$(binding_stampdir)/%.stamp,$(files_hg))
44
44
 
45
45
# Distributed code generation source files.
46
46
dist_noinst_DATA = $(files_defs) $(files_hg) $(files_ccg)
57
57
gen_wrap_init ?= $(PERL) -- "$(GMMPROC_DIR)/generate_wrap_init.pl"
58
58
gmmproc_flags ?= -I $(codegen_m4_srcdir) --defs $(srcdir)
59
59
 
 
60
# Automatically created output directories.
 
61
binding_mkdirs = $(binding_stampdir) $(binding_outputdir)/private
 
62
 
 
63
# Show names of generated files in silent rules output.
 
64
mm_0_gen = @echo '  GEN    $(binding_outputdir)/{$*.cc,$*.h,private/$*_p.h}';
 
65
mm_v_gen = $(if $(filter 0,$(or $(V),$(AM_DEFAULT_VERBOSITY))),$(mm_0_gen))
 
66
 
60
67
# Declare the built sources main targets.
61
68
all-local: $(binding_stampfiles) $(other_built_sources)
62
69
 
63
 
# Create the .stamps/ subdirectory if it does not exist already.
64
 
$(binding_stampdir):
65
 
        $(MKDIR_P) $@
 
70
# Create the output directories if they do not exist already.
 
71
$(binding_mkdirs):
 
72
        $(AM_V_at)$(MKDIR_P) $@
66
73
 
67
74
# Generate the wrap_init.cc file using generate_wrap_init.pl.
68
 
$(binding_outputdir)/wrap_init.cc: $(binding_relfiles_hg)
69
 
        $(gen_wrap_init) $(wrap_init_flags) $(binding_relfiles_hg) >$@
 
75
$(binding_outputdir)/wrap_init.cc: $(binding_relfiles_hg) $(srcdir)/Makefile.in
 
76
        $(AM_V_GEN)$(gen_wrap_init) $(wrap_init_flags) $(binding_relfiles_hg) >$@
70
77
 
71
78
# Run the gmmproc code generator to produce the C++ binding code.
72
 
$(binding_stampdir)/%.stamp: %.hg %.ccg $(gmmproc_dependencies) | $(binding_stampdir)
 
79
$(binding_stampdir)/%.stamp: %.hg %.ccg $(gmmproc_dependencies) | $(binding_mkdirs)
73
80
        @: >$@
74
 
        $(gmmproc) $(gmmproc_flags) $(notdir $*) $(srcdir) $(binding_outputdir)
 
81
        $(mm_v_gen)$(gmmproc) $(gmmproc_flags) $* $(srcdir) $(binding_outputdir)
75
82
 
76
83
# Instruct GNU make to delete the targets of a rule after it failed, in
77
84
# order to avoid the complication of handling that situation manually.