|
|
| version 1.1.2.3, 2003/03/03 15:30:06 | version 1.1.2.6, 2003/03/06 08:48:59 |
|---|---|
| Line 1 | Line 1 |
| ifdef COMSPEC | ifdef COMSPEC |
| PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe | PARSER_DIR=../src/targets/cgi/debug |
| PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe | |
| PARSER_CONFIG=$(PARSER_DIR)/auto.p | |
| else | else |
| PARSER_EXECUTABLE=../src/targets/cgi/parser3 | PARSER_DIR=../src/targets/cgi |
| PARSER_EXECUTABLE=$(PARSER_DIR)/parser3 | |
| PARSER_CONFIG=$(PARSER_DIR)/auto.p | |
| endif | endif |
| RUN_PARSER=./run_parser.sh | RUN_PARSER=./run_parser.sh |
| Line 14 RM=rm | Line 18 RM=rm |
| OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html)) | OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html)) |
| RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html)) | RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html)) |
| outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) | outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) $(PARSER_CONFIG) |
| $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@ | $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@ |
| .PHONY: FORCE all clean | .PHONY: FORCE all tests clean |
| results/%.processed: outputs/%.processed FORCE | results/%.processed: outputs/%.processed FORCE |
| @$(DIFF) $< $@ | -$(DIFF) $< $@ |
| all: tests | all: |
| @$(ECHO) this folder contains Parser3 tests, you can run them by command: | |
| @$(ECHO) make tests | |
| tests: outputs compares | tests: outputs compares |
| outputs: $(OUTPUTS) | outputs: $(OUTPUTS) |
| compares: $(RESULTS) | compares: $(RESULTS) |
| @$(ECHO) All tests passed OK | @$(ECHO) DONE |
| clean: | clean: |
| $(RM) -f outputs/*.processed | $(RM) -f outputs/*.processed |