gnomemm r2015 - in gstreamermm/trunk: . build_shared
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2015 - in gstreamermm/trunk: . build_shared
- Date: Sun, 25 Jan 2009 03:43:27 +0000 (UTC)
Author: jaalburqu
Date: Sun Jan 25 03:43:27 2009
New Revision: 2015
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2015&view=rev
Log:
2009-01-24 Josà Alburquerque <jaalburqu svn gnome org>
* build_shared/Makefile_gensrc.am_fragment: Add license header to
plug-in .hg and .ccg files.
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/build_shared/Makefile_gensrc.am_fragment
Modified: gstreamermm/trunk/build_shared/Makefile_gensrc.am_fragment
==============================================================================
--- gstreamermm/trunk/build_shared/Makefile_gensrc.am_fragment (original)
+++ gstreamermm/trunk/build_shared/Makefile_gensrc.am_fragment Sun Jan 25 03:43:27 2009
@@ -75,15 +75,22 @@
generate_plugin_dep = $(generate_plugin_gmmproc_file_path)
endif
+# The source file from which the license header may be extracted and placed in
+# plug-in generated .hg and .ccg files (use a file that probably will not
+# change because it will be a plug-in generation dependency):
+license_header_source_file = $(gensrc_destdir)/version.h
+
# This is to generate plugin .hg files. The generated .hg file s piped through
# m4 using the macros in tools/m4/ctocpp_base.m4 which then produces the final
# .hg file. Finally, the camel hg file is linked to the final .hg file to
# signal the successful generation of the .hg file.
$(files_all_plugin_camel_hg_with_path): $(generate_plugin_dep) \
- $(tools_plugin_m4) $(files_defs)
+ $(tools_plugin_m4) $(files_defs) $(license_header_source_file)
$(eval hg_lowercase = $$(shell echo $$@ | tr [:upper:] [:lower:]))
+ sed -n '1,/^$$/p' $(license_header_source_file) > \
+ $(srcdir)/$(notdir $(hg_lowercase))
$(run_generate_plugin_gmmproc_file) --hg \
- $(notdir $(subst .hg,,$@)) | $(M4) -I $(tools_dir_m4) > \
+ $(notdir $(subst .hg,,$@)) | $(M4) -I $(tools_dir_m4) >> \
$(srcdir)/$(notdir $(hg_lowercase))
ln -sf $(realpath $(srcdir))/$(notdir $(hg_lowercase)) $(builddir)/$@
@@ -91,10 +98,12 @@
# the camel ccg file is linked to the generated .ccg file to signal the
# successful generation of the .hg file.
$(files_all_plugin_camel_hg_with_path:.hg=.ccg): $(generate_plugin_dep) \
- $(tools_plugin_m4) $(files_defs)
+ $(tools_plugin_m4) $(files_defs) $(license_header_source_file)
$(eval ccg_lowercase = $$(shell echo $$@ | tr '[:upper:]' '[:lower:]'))
+ sed -n '1,/^$$/p' $(license_header_source_file) > \
+ $(srcdir)/$(notdir $(ccg_lowercase))
$(run_generate_plugin_gmmproc_file) --ccg \
- $(notdir $(subst .ccg,,$@)) > \
+ $(notdir $(subst .ccg,,$@)) >> \
$(srcdir)/$(notdir $(ccg_lowercase))
ln -sf $(realpath $(srcdir))/$(notdir $(ccg_lowercase)) $(builddir)/$@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]