diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-12 10:45:06 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-12 10:45:06 +0800 |
| commit | 319f49796439e50640cadff1220681a217be98a3 (patch) | |
| tree | d65021d61b64373d5fb3763ba6375faaebaa1e53 /makefile | |
| parent | d63779ec0a6f00854f53b48b0f6a67707879b6d1 (diff) | |
| download | yuescript-319f49796439e50640cadff1220681a217be98a3.tar.gz yuescript-319f49796439e50640cadff1220681a217be98a3.tar.bz2 yuescript-319f49796439e50640cadff1220681a217be98a3.zip | |
Added the all-in-one doc.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -33,6 +33,7 @@ INSTALL_PREFIX = usr/local | |||
| 33 | TEST_INPUT = ./spec/inputs | 33 | TEST_INPUT = ./spec/inputs |
| 34 | TEST_OUTPUT = ./spec/generated | 34 | TEST_OUTPUT = ./spec/generated |
| 35 | GEN_OUTPUT = ./spec/outputs | 35 | GEN_OUTPUT = ./spec/outputs |
| 36 | DOC_OUTPUT = ./doc | ||
| 36 | 37 | ||
| 37 | PLAT = macos | 38 | PLAT = macos |
| 38 | 39 | ||
| @@ -439,7 +440,7 @@ test: debug | |||
| 439 | @./$(BIN_NAME) $(TEST_INPUT)/import_global.yue -o $(TEST_OUTPUT)/5.1/import_global.lua --target 5.1 | 440 | @./$(BIN_NAME) $(TEST_INPUT)/import_global.yue -o $(TEST_OUTPUT)/5.1/import_global.lua --target 5.1 |
| 440 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target 5.1 | 441 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target 5.1 |
| 441 | @./$(BIN_NAME) $(TEST_INPUT)/test/try_catch_spec.yue -o $(TEST_OUTPUT)/5.1/test/try_catch_spec.lua --target 5.1 | 442 | @./$(BIN_NAME) $(TEST_INPUT)/test/try_catch_spec.yue -o $(TEST_OUTPUT)/5.1/test/try_catch_spec.lua --target 5.1 |
| 442 | @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(TEST_OUTPUT) | 443 | @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(TEST_OUTPUT) $(DOC_OUTPUT) |
| 443 | @echo -en "Compile time: " | 444 | @echo -en "Compile time: " |
| 444 | @$(END_TIME) | 445 | @$(END_TIME) |
| 445 | @./$(BIN_NAME) -e "$$(printf "r = io.popen('git diff --no-index $(TEST_OUTPUT) $(GEN_OUTPUT) | head -5')\\\\read '*a'\nif r ~= ''\n print r\n os.exit 1")" | 446 | @./$(BIN_NAME) -e "$$(printf "r = io.popen('git diff --no-index $(TEST_OUTPUT) $(GEN_OUTPUT) | head -5')\\\\read '*a'\nif r ~= ''\n print r\n os.exit 1")" |
| @@ -466,7 +467,7 @@ gen: release | |||
| 466 | @./$(BIN_NAME) $(TEST_INPUT)/import_global.yue -o $(GEN_OUTPUT)/5.1/import_global.lua --target 5.1 | 467 | @./$(BIN_NAME) $(TEST_INPUT)/import_global.yue -o $(GEN_OUTPUT)/5.1/import_global.lua --target 5.1 |
| 467 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(GEN_OUTPUT)/5.1/test/loops_spec.lua --target 5.1 | 468 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(GEN_OUTPUT)/5.1/test/loops_spec.lua --target 5.1 |
| 468 | @./$(BIN_NAME) $(TEST_INPUT)/test/try_catch_spec.yue -o $(GEN_OUTPUT)/5.1/test/try_catch_spec.lua --target 5.1 | 469 | @./$(BIN_NAME) $(TEST_INPUT)/test/try_catch_spec.yue -o $(GEN_OUTPUT)/5.1/test/try_catch_spec.lua --target 5.1 |
| 469 | @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(GEN_OUTPUT) | 470 | @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(GEN_OUTPUT) $(DOC_OUTPUT) |
| 470 | @echo -en "Compile time: " | 471 | @echo -en "Compile time: " |
| 471 | @$(END_TIME) | 472 | @$(END_TIME) |
| 472 | 473 | ||
