Bugzilla bug #52173: accept both ytab.{c,h} and y.tab.{c,h} as the output

files of yacc.
This commit is contained in:
wtc%netscape.com 2000-09-11 21:40:42 +00:00
Родитель 21066d7dbd
Коммит 43ae02ba26
1 изменённых файлов: 12 добавлений и 11 удалений

Просмотреть файл

@ -72,17 +72,18 @@ include $(CORE_DEPTH)/coreconf/rules.mk
include ../platrules.mk
ifeq ($(OS_ARCH), WINNT)
installparse.c: installparse.y FORCE
yacc -d installparse.y
mv ytab.c installparse.c
mv ytab.h installparse.h
#
# A version of yacc for Win32 used at Netscape (nstools/bin/yacc.exe)
# generates output files named ytab.c and ytab.h (probably to be 8.3
# compliant). So we accept both ytab.{c,h} and y.tab.{c,h} here.
#
FORCE:
else
installparse.c: installparse.y
yacc -d installparse.y
mv y.tab.c installparse.c
mv y.tab.h installparse.h
endif
if test -f ytab.c ; then \
mv ytab.c installparse.c; \
mv ytab.h installparse.h; \
else \
mv y.tab.c installparse.c; \
mv y.tab.h installparse.h; \
fi