mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
22c249347e
The parser files for ext/json are generated by bison from the *.y file. Parser files in Zend and sapi/phpdbg already follow such approach of these files being ignored from tracking in the Git repository and they are shipped via the release packages later on. This way the end users still don't need to have bison dependency installed to install PHP. The genfiles script was refactored to generate the ext/json parser and lexer files.
6 lines
278 B
Makefile
6 lines
278 B
Makefile
$(srcdir)/json_scanner.c: $(srcdir)/json_scanner.re
|
|
@$(RE2C) $(RE2C_FLAGS) -t $(srcdir)/php_json_scanner_defs.h --no-generation-date -bci -o $@ $(srcdir)/json_scanner.re
|
|
|
|
$(srcdir)/json_parser.tab.c: $(srcdir)/json_parser.y
|
|
@$(YACC) --defines -l $(srcdir)/json_parser.y -o $@
|