зеркало из 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
|
include ../platrules.mk
|
||||||
|
|
||||||
ifeq ($(OS_ARCH), WINNT)
|
#
|
||||||
installparse.c: installparse.y FORCE
|
# A version of yacc for Win32 used at Netscape (nstools/bin/yacc.exe)
|
||||||
yacc -d installparse.y
|
# generates output files named ytab.c and ytab.h (probably to be 8.3
|
||||||
mv ytab.c installparse.c
|
# compliant). So we accept both ytab.{c,h} and y.tab.{c,h} here.
|
||||||
mv ytab.h installparse.h
|
#
|
||||||
|
|
||||||
FORCE:
|
|
||||||
|
|
||||||
else
|
|
||||||
installparse.c: installparse.y
|
installparse.c: installparse.y
|
||||||
yacc -d installparse.y
|
yacc -d installparse.y
|
||||||
mv y.tab.c installparse.c
|
if test -f ytab.c ; then \
|
||||||
mv y.tab.h installparse.h
|
mv ytab.c installparse.c; \
|
||||||
endif
|
mv ytab.h installparse.h; \
|
||||||
|
else \
|
||||||
|
mv y.tab.c installparse.c; \
|
||||||
|
mv y.tab.h installparse.h; \
|
||||||
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче