[librsvgmm] Rename tools/ directory to codegen/



commit a523414722a1fd13d618c20cf2442079cdc48f5f
Author: Daniel Elstner <daniel kitta gmail com>
Date:   Sat Jul 11 19:03:47 2009 +0200

    Rename tools/ directory to codegen/
    
    * codegen/: Rename tools/ subdirectory to codegen/.
    * codegen/m4/filelist.am: Switch all references to the renamed
    tools/ directory to the new codegen/ name.
    * build/generate-binding.am: ditto,
    * Makefile.am: ditto,
    * configure.ac: ditto.

 .gitignore                                         |    2 +-
 Makefile.am                                        |    2 +-
 build/generate-binding.am                          |   12 ++++++------
 {tools => codegen}/Makefile.am                     |    2 +-
 .../extradefs/generate_extra_defs_librsvg.cc       |    0
 {tools => codegen}/m4/convert.m4                   |    0
 {tools => codegen}/m4/convert_librsvg.m4           |    0
 codegen/m4/filelist.am                             |    3 +++
 configure.ac                                       |    2 +-
 tools/m4/filelist.am                               |    3 ---
 10 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2973c79..4e371fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,4 +14,4 @@ Makefile.in
 /librsvgmm-*.tar.*
 /libtool
 /*.lineno
-/tools/extradefs/generate_extra_defs
+/codegen/extradefs/generate_extra_defs
diff --git a/Makefile.am b/Makefile.am
index bf53b51..14b5283 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@ ACLOCAL_AMFLAGS = -I build ${ACLOCAL_FLAGS}
 DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal
 
 if MAINTAINER_MODE
-src_subdirs = tools librsvg/src
+src_subdirs = codegen librsvg/src
 else
 src_subdirs =
 endif
diff --git a/build/generate-binding.am b/build/generate-binding.am
index 5943929..9ba7751 100644
--- a/build/generate-binding.am
+++ b/build/generate-binding.am
@@ -16,22 +16,22 @@
 ## along with mm-autofu.  If not, see <http://www.gnu.org/licenses/>.
 
 ## Parameter:   binding_name, wrap_init_flags
-## Files:       files_tools_m4, files_defs, files_hg, files_ccg
+## Files:       files_codegen_m4, files_defs, files_hg, files_ccg
 ## Output:      dist_noinst_DATA
 
-include $(top_srcdir)/tools/m4/filelist.am
+include $(top_srcdir)/codegen/m4/filelist.am
 
 dist_noinst_DATA = $(files_defs) $(files_hg) $(files_ccg)
 
-tools_dir	= $(top_srcdir)/tools
+codegen_dir	= $(top_srcdir)/codegen
 output_dir	= $(top_srcdir)/$(dir $(subdir))$(binding_name)
 stamp_dir	= $(srcdir)/.stamps
 
-path_tools_m4	= $(files_tools_m4:%.m4=$(tools_dir)/m4/%.m4)
+path_codegen_m4	= $(files_codegen_m4:%.m4=$(codegen_dir)/m4/%.m4)
 path_files_hg	= $(files_hg:%.hg=$(srcdir)/%.hg)
 stamp_files	= $(files_hg:%.hg=$(stamp_dir)/stamp-%)
 
-gmmproc		= $(GMMPROC_DIR)/gmmproc -I $(tools_dir)/m4 --defs $(srcdir)
+gmmproc		= $(GMMPROC_DIR)/gmmproc -I $(codegen_dir)/m4 --defs $(srcdir)
 gen_wrap_init	= $(PERL_PATH) $(GMMPROC_DIR)/generate_wrap_init.pl $(wrap_init_flags)
 
 .DELETE_ON_ERROR:
@@ -50,6 +50,6 @@ $(stamp_files): | mkdir-stamps
 $(output_dir)/wrap_init.cc:: $(path_files_hg)
 	$(gen_wrap_init) $(path_files_hg) >'$@'
 
-$(stamp_dir)/stamp-%:: %.hg %.ccg $(path_tools_m4) $(files_defs)
+$(stamp_dir)/stamp-%:: %.hg %.ccg $(path_codegen_m4) $(files_defs)
 	@echo timestamp >'$@'
 	$(gmmproc) $(notdir $*) $(srcdir) $(output_dir)
diff --git a/tools/Makefile.am b/codegen/Makefile.am
similarity index 95%
rename from tools/Makefile.am
rename to codegen/Makefile.am
index 2cfade2..bed3f18 100644
--- a/tools/Makefile.am
+++ b/codegen/Makefile.am
@@ -19,7 +19,7 @@ AUTOMAKE_OPTIONS = subdir-objects
 
 include $(srcdir)/m4/filelist.am
 
-dist_noinst_DATA = $(files_tools_m4:%.m4=m4/%.m4)
+dist_noinst_DATA = $(files_codegen_m4:%.m4=m4/%.m4)
 
 noinst_PROGRAMS = extradefs/generate_extra_defs
 extradefs_generate_extra_defs_SOURCES = extradefs/generate_extra_defs_librsvg.cc
diff --git a/tools/extradefs/generate_extra_defs_librsvg.cc b/codegen/extradefs/generate_extra_defs_librsvg.cc
similarity index 100%
rename from tools/extradefs/generate_extra_defs_librsvg.cc
rename to codegen/extradefs/generate_extra_defs_librsvg.cc
diff --git a/tools/m4/convert.m4 b/codegen/m4/convert.m4
similarity index 100%
rename from tools/m4/convert.m4
rename to codegen/m4/convert.m4
diff --git a/tools/m4/convert_librsvg.m4 b/codegen/m4/convert_librsvg.m4
similarity index 100%
rename from tools/m4/convert_librsvg.m4
rename to codegen/m4/convert_librsvg.m4
diff --git a/codegen/m4/filelist.am b/codegen/m4/filelist.am
new file mode 100644
index 0000000..4310156
--- /dev/null
+++ b/codegen/m4/filelist.am
@@ -0,0 +1,3 @@
+## This file is part of librsvgmm.
+
+files_codegen_m4 = convert.m4 convert_librsvg.m4
diff --git a/configure.ac b/configure.ac
index af4f5c8..c601acb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,7 @@ DK_ARG_ENABLE_WARNINGS([LIBRSVGMM_WXXFLAGS],
                        [G RSVG])
 
 AC_CONFIG_FILES([Makefile
-                 tools/Makefile
+                 codegen/Makefile
                  librsvg/librsvgmm-2.0.pc
                  librsvg/librsvgmm-2.0-uninstalled.pc
                  librsvg/src/Makefile



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