summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/c.mk2
-rw-r--r--parse/Makefile1
2 files changed, 2 insertions, 1 deletions
diff --git a/mk/c.mk b/mk/c.mk
index e60f318..98a5afd 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -101,7 +101,7 @@ clean-backups:
find ./ -name .*.sw* -exec rm -f {} \;
find ./ -name *.bak -exec rm -f {} \;
-%.o: %.c .deps
+%.o: %.c $(GENHDR) .deps
$(CC) -c $(CFLAGS) $(_LIBINCPATHS) $<
.deps:
diff --git a/parse/Makefile b/parse/Makefile
index 6928225..36d9fc7 100644
--- a/parse/Makefile
+++ b/parse/Makefile
@@ -13,6 +13,7 @@ OBJ=bitset.o \
use.o \
util.o
+GENHDR=gram.h
CLEAN=gram.c gram.h
include ../mk/lexyacc.mk