|
|
| version 1.1.2.2, 2003/03/03 13:33:00 | version 1.1.2.5, 2003/03/06 08:15:39 |
|---|---|
| Line 1 | Line 1 |
| ifdef COMSPEC | ifdef COMSPEC |
| PARSER=./parser-cygwin.sh | PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe |
| else | else |
| PARSER=./parser-unix.sh | PARSER_EXECUTABLE=../src/targets/cgi/parser3 |
| endif | endif |
| RUN_PARSER=./run_parser.sh | |
| DIFF=diff | DIFF=diff |
| ECHO=echo | ECHO=echo |
| RM=rm | RM=rm |
| Line 13 RM=rm | Line 14 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 $(PARSER) | outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) |
| $(PARSER) $< > $@ | $(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 |