fixed yacc/lex rules for pc and no knts

This commit is contained in:
Jeff Hill
1997-06-13 09:10:14 +00:00
parent 84544919cf
commit 2cc65e1912
3 changed files with 33 additions and 26 deletions
+7
View File
@@ -1,3 +1,10 @@
<<<<<<< CONFIG.pc486
#
# no longer required
#
#SHELL=knts
=======
>>>>>>> 1.3
# BUILD_TYPE
# Currently either Vx or Unix
+13 -14
View File
@@ -407,21 +407,20 @@ endif
@$(RM) $@
$(COMPILE.cc) $<
%.c %.h: ../%.y
@$(RM) y.tab.c y.tab.h
#
# rename the y.tab.h file only if we
# are creating it
#
%.h %.c: ../%.y
$(RM) $*.c y.tab.c
ifeq ($(findstring -d, $(YACCOPT)),-d)
$(RM) $*.h y.tab.h
endif
$(YACC) $(YACCOPT) $<
@if [ -f y.tab.c ]; \
then \
echo "$(MV) y.tab.c $*.c"; \
$(RM) $*.c; \
$(MV) y.tab.c $*.c; \
fi
@if [ -f y.tab.h ]; \
then \
echo "$(MV) y.tab.h $*.h"; \
$(RM) $*.h; \
$(MV) y.tab.h $*.h; \
fi
$(MV) y.tab.c $*.c
ifeq ($(findstring -d, $(YACCOPT)),-d)
$(MV) y.tab.h $*.h
endif
%.c: ../%.l
@$(RM) lex.yy.c
+13 -12
View File
@@ -104,19 +104,20 @@ $(DIRECTORY_TARGETS) :
$(RM) $@
$(COMPILE.cc) $<
%.c: ../%.y
$(RM) y.tab.c y.tab.h
#
# rename the y.tab.h file only if we
# are creating it
#
%.h %.c: ../%.y
$(RM) $*.c y.tab.c
ifeq ($(findstring -d, $(YACCOPT)),-d)
$(RM) $*.h y.tab.h
endif
$(YACC) $(YACCOPT) $<
@if [ -f y.tab.c ]; \
then \
echo "$(MV) y.tab.c $*.c"; \
$(MV) y.tab.c $*.c; \
fi
@if [ -f y.tab.h ]; \
then \
echo "$(MV) y.tab.h $*.h"; \
$(MV) y.tab.h $*.h; \
fi
$(MV) y.tab.c $*.c
ifeq ($(findstring -d, $(YACCOPT)),-d)
$(MV) y.tab.h $*.h
endif
%.c: ../%.l
$(RM) lex.yy.c