aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index ef80109a44903..78b5f2f410aa3 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -81,10 +81,13 @@ GENSRCS+= c-gperf.h
#-----------------------------------------------------------------------
# C++ hash codes
-hash.h: gxx.gperf
+gxx-hash.h: gxx.gperf
gperf -p -j1 -g -o -t -N is_reserved_word '-k1,4,7,$$' \
- ${GCCDIR}/cp/gxx.gperf >hash.h
-GENSRCS+= hash.h
+ ${GCCDIR}/cp/gxx.gperf >gxx-hash.h
+
+hash.h: gxx-hash.h
+ ln -s ${.ALLSRC} ${.TARGET}
+GENSRCS+= gxx-hash.h hash.h
#-----------------------------------------------------------------------
# Common parser stuff.