diff options
authorUli Schlachter <>2014-06-17 23:51:19 +0200
committerUli Schlachter <>2019-02-17 09:17:11 +0100
commitf75e4be03d284539eda5e0dae291da41fc576a44 (patch)
parent947eaba9ff0bf6e6b595cd5a065b5f126611fdb7 (diff)
Fix out-of-source builds
When building something out-of-source, make's VPATH mechanism is used so that files in the source directory are also found. This makes make automatically check that other directory for needed files and use those when needed. However, make doesn't magically copy those files over. We have to explicitly use the file that make found. Do so by using $< for refering to shape_to_id.gperf instead of hardcoding the name of the source file. This fixes out-of-source git builds. Out-of-source release builds already worked before this, because releases come with a pre-generated shape_to_id.c. This fixes Signed-off-by: Uli Schlachter <>
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor/ b/cursor/
index 3e92189..1f54ae1 100644
--- a/cursor/
+++ b/cursor/
@@ -21,7 +21,7 @@ GPERFFLAGS = --includes --struct-type --language=ANSI-C --switch=1
CLEANFILES = shape_to_id.c
shape_to_id.c: shape_to_id.gperf
- $(AM_V_GEN)if $(GPERF) $(GPERFFLAGS) shape_to_id.gperf >$@t; then \
+ $(AM_V_GEN)if $(GPERF) $(GPERFFLAGS) $< >$@t; then \
mv $@t $@; \
elif $(GPERF) --version >/dev/null 2>&1; then \
rm $@t; \