TAME_PARAMS: New Makefile var

This is intended to be set via the configure script, and is being added
primarily for the upcoming flag to enable the legacy classification
system.  This is only used for the XSLT-based compiler.
main
Mike Gerwitz 2022-02-28 10:04:56 -05:00
parent ce0da76ccf
commit 9fa79ce5ea
3 changed files with 15 additions and 12 deletions

View File

@ -30,6 +30,8 @@ Compiler
- Improved symbol table processing performance.
- For packages/maps with thousands of dependenices, this may improve
processing time by a minute or more.
- `TAME_PARMS`, now accepted by the `Makefile` and `configure` script, will
append `key=value` options to the XSLT-based compiler invocations.
Documentation
-------------

View File

@ -147,7 +147,7 @@ program-ui: ui/package.strip.js ui/Program.js ui/html/index.phtml
# Individual dependencies appear in suppliers.mk (see below)
%.xmlo: %.xmli $(path_tame)/.rev-xmlo
$(TAME_TS)
$(TAME) compile $< $@
$(TAME) compile $< $@ $(TAME_PARAMS)
# Note the `$()' here to prevent Automake from inlining this file---it is
# to be generated when imports change, which can be at any time.
@ -157,7 +157,7 @@ summary-html: $(dest_summary_html) ;
%.html: %.js %.xmle
$(TAME_TS)
$(TAME) summary $*.xmle $@
$(TAME) summary $*.xmle $@ $(TAME_PARAMS)
standalones: $(dest_standalone)
strip: $(dest_standalone_strip) ui/package.strip.js
@ -166,7 +166,7 @@ strip: $(dest_standalone_strip) ui/package.strip.js
$(path_tame)/tamer/target/release/tameld --emit xmle -o $@ $<
%.js: %.xmle
$(TAME_TS)
$(TAME) standalone $< $@
$(TAME) standalone $< $@ $(TAME_PARAMS)
%.strip.js: %.js
cp $< $@
$(path_tame)/tools/strip $@
@ -176,15 +176,15 @@ c1map: $(dest_c1map)
%.dot: %.xmlo
$(TAME_TS)
$(TAME) dot $< $@
$(TAME) dot $< $@ $(TAME_PARAMS)
%.dote: %.xmle
$(TAME_TS)
$(TAME) dot $< $@
$(TAME) dot $< $@ $(TAME_PARAMS)
%.neo4j: %.xmlo
$(TAME) neo4j $< $@
$(TAME) neo4j $< $@ $(TAME_PARAMS)
%.neo4je: %.xmle
$(TAME) neo4j $< $@
$(TAME) neo4j $< $@ $(TAME_PARAMS)
%.svg: %.dote
@ -231,22 +231,22 @@ version: .version.xml
ui/program.expanded.xml: ui/program.xml $(program_fragments) .version.xml
$(TAME_TS)
$(TAME) progui-expand $< $@
$(TAME) progui-expand $< $@ $(TAME_PARAMS)
ui/Program.js: ui/program.expanded.xml ui/package.js
$(TAME_TS)
$(TAME) progui-class $< $@ include-path=$$(pwd)/ui/
$(TAME) progui-class $< $@ include-path=$$(pwd)/ui/ $(TAME_PARAMS)
ui/html/index.phtml: ui/program.expanded.xml
$(TAME_TS)
$(TAME) progui-html $< $@ out-path=./
$(TAME) progui-html $< $@ out-path=./ $(TAME_PARAMS)
ui/package-dfns.xmlo: ui/package-dfns.xml $(package_dfns_xmlos)
ui/package-dfns.xml: ui/program.expanded.xml
$(TAME_TS)
$(TAME) progui-pkg $< $@
$(TAME) progui-pkg $< $@ $(TAME_PARAMS)
$(package_dfns_pkgs): ui/package-dfns.xml
ui/package-map.xmlo: ui/package-map.xml ui/package-dfns.xmlo $(package_dfns_xmlos)
ui/package-map.xml: ui/program.expanded.xml ui/package-dfns.xml
$(TAME_TS)
$(TAME) progui-pkg-map $< $@
$(TAME) progui-pkg-map $< $@ $(TAME_PARAMS)
# for the time being, this does not depend on clean-rate-tables because $(ant) will
specs:

View File

@ -34,6 +34,7 @@ AC_ARG_VAR([JAVA], [The Java executable])
AC_ARG_VAR([ANT], [Apache Ant])
AC_ARG_VAR([DSLC_JAR], [Path to DSL Compiler JAR])
AC_ARG_VAR([TAME], [The TAME compiler])
AC_ARG_VAR([TAME_PARAMS], [key=value pairs for XSLT-based compiler global params])
AC_ARG_VAR([RATER_CLASSPATH], [DSL Compiler Saxon class path])
AC_ARG_VAR([PROGUI_TEST_PATH], [Path to JavaScript tests for Program UI])