|
|
| version 1.1.2.2, 2003/03/03 13:33:00 | version 1.2, 2003/07/24 11:25:58 |
|---|---|
| Line 1 | Line 1 |
| ifdef COMSPEC | ifdef COMSPEC |
| PARSER=./parser-cygwin.sh | PARSER_DIR=../src/targets/cgi/release |
| PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe | |
| PARSER_CONFIG=$(PARSER_DIR)/auto.p | |
| else | else |
| PARSER=./parser-unix.sh | PARSER_DIR=../src/targets/cgi |
| PARSER_EXECUTABLE=$(PARSER_DIR)/parser3 | |
| PARSER_CONFIG=$(PARSER_DIR)/auto.p | |
| endif | endif |
| DIFF=diff | RUN_PARSER=./run_parser.sh |
| DIFF=diff -b | |
| ECHO=echo | ECHO=echo |
| RM=rm | RM=rm |
| Line 13 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 $(PARSER) | outputs/%.processed: %.html |
| $(PARSER) $< > $@ | # Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) $(PARSER_CONFIG) |
| $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@ | |
| .PHONY: FORCE all clean | .PHONY: FORCE all tests clean install install-exec install-data |
| results/%.processed: outputs/%.processed FORCE | results/%.processed: outputs/%.processed FORCE |
| @$(DIFF) $< $@ | -$(DIFF) $< $@ |
| all: 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 |
| install: | |
| install-exec: | |
| install-data: |