зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug #52173: accept both ytab.{c,h} and y.tab.{c,h} as the output
files of yacc.
This commit is contained in:
Родитель
aa5354138d
Коммит
9f590a6d24
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче