diff options
| author | Alan Conway <aconway@apache.org> | 2007-04-14 16:38:02 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-04-14 16:38:02 +0000 |
| commit | e592f06a7e03c4fe15372171b871bcc207cc4089 (patch) | |
| tree | c73fcc45594441f6d7767894b0229931111e1471 /cpp/gen/gen-src-mk.sh | |
| parent | 7c48ed87f8fbf6557bfbcc9fc84e25b9f24189ac (diff) | |
| download | qpid-python-e592f06a7e03c4fe15372171b871bcc207cc4089.tar.gz | |
* Moved code generation into top-level gen/ dir with own Makefile.am
to correctly install generated headers.
* Fixed gen-src.mk/Makefile dependency loop, bootstrap no longer needs
to pre-create gen-src.mk.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@528835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/gen/gen-src-mk.sh')
| -rwxr-xr-x | cpp/gen/gen-src-mk.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/gen/gen-src-mk.sh b/cpp/gen/gen-src-mk.sh new file mode 100755 index 0000000000..c17bc14307 --- /dev/null +++ b/cpp/gen/gen-src-mk.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# Generates gen-src.mk makefile fragment, to stdout. +# Usage: <gentools_dir> <gentools_srcdir> + +gentools_dir=$1 +gentools_srcdir=$2 + +backslashify() { + for x in $* ; do + echo " \\" + echo -n " $x" + done + echo ; echo +} + + +echo -n "generated_cpp = " +backslashify `find * -name '*.cpp' -print` +echo -n "generated_h = " +backslashify `find * -name '*.h' -print` + +echo +echo -n "java_sources =" +backslashify `find $gentools_srcdir -name '*.java' -print` +echo -n "cxx_templates =" +backslashify `find $gentools_dir/templ.cpp -name '*.tmpl'` + +cat <<EOF +# Empty rules in case one of these files is removed, +# renamed or no longer generated. +\$(spec): +\$(java_sources): +\$(cxx_templates): +EOF + + |
