aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-01-29 17:20:00 -0800
committerElliott Hughes <enh@google.com>2019-01-29 17:20:00 -0800
commitcc165f4be9a6ea8f77ff4533786bcddde1d13fdf (patch)
treee9b88828241ba7f3d423a3479416c585f35466cf /makefile
parentc3c7c1370e9a9969bdcaf2018c5e62096ac15c55 (diff)
downloadone-true-awk-cc165f4be9a6ea8f77ff4533786bcddde1d13fdf.tar.gz
maketab: support build systems with read-only source.
If your generated files are considered outputs that live elsewhere, you need a way to tell maketab where ytab.h actually is. Specifically, I'm trying to avoid checking in generated files in Android's AOSP tree's copy of one-true-awk.
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 3f3c3c2..a4f1b8a 100644
--- a/makefile
+++ b/makefile
@@ -67,7 +67,7 @@ y%.c y%.h: awk.h proto.h awkgram.y
ytab.h: ytab.c
proctab.c: maketab
- ./maketab >proctab.c
+ ./maketab ytab.h >proctab.c
maketab: ytab.h maketab.c
$(CC) $(CFLAGS) maketab.c -o maketab