summaryrefslogtreecommitdiffstats
path: root/ecpg.mk
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2011-03-05 14:21:24 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2011-03-07 20:57:37 +0100
commit8f2566c5a39f758bb0db337fc106fa94f52220df (patch)
tree47107416f6164458434a5a934bebb98741c215d1 /ecpg.mk
parentfef5564a64870ce438d0b1185df521fd54126171 (diff)
downloadrasdaman-upstream-8f2566c5a39f758bb0db337fc106fa94f52220df.tar.gz
rasdaman-upstream-8f2566c5a39f758bb0db337fc106fa94f52220df.tar.xz
rasdaman-upstream-8f2566c5a39f758bb0db337fc106fa94f52220df.zip
build: Support (srcdir != builddir) VDIR builds
Support (srcdir != builddir) VDIR builds. This will also help a lot with preparing for a working "make distcheck".
Diffstat (limited to 'ecpg.mk')
-rw-r--r--ecpg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/ecpg.mk b/ecpg.mk
new file mode 100644
index 0000000..3e6ead7
--- /dev/null
+++ b/ecpg.mk
@@ -0,0 +1,8 @@
+# -*- Makefile -*-
+# ecpg.mk
+
+SUFFIXES = .@EMBEDDEDSQLEXT@ .@EMBEDDEDSQLOUT@
+
+.@EMBEDDEDSQLEXT@.@EMBEDDEDSQLOUT@:
+ set -x; cwd="$$PWD"; \
+ cd "$$(dirname "$<")" && $(EMBEDDEDSQLPRECOMPILER) -o "$$cwd/$@" "$$(basename "$<")"