--- parser3/tests/Makefile 2003/03/03 13:33:00 1.1.2.2 +++ parser3/tests/Makefile 2003/03/25 11:11:35 1.1.2.8.2.5 @@ -1,10 +1,15 @@ ifdef COMSPEC - PARSER=./parser-cygwin.sh + PARSER_DIR=../src/targets/cgi/debug + PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe + PARSER_CONFIG=$(PARSER_DIR)/auto.p else - PARSER=./parser-unix.sh + PARSER_DIR=../src/targets/cgi + PARSER_EXECUTABLE=$(PARSER_DIR)/parser3 + PARSER_CONFIG=$(PARSER_DIR)/auto.p endif -DIFF=diff +RUN_PARSER=./run_parser.sh +DIFF=diff -b ECHO=echo RM=rm @@ -13,22 +18,24 @@ RM=rm OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html)) RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html)) -outputs/%.processed: %.html Makefile $(PARSER) - $(PARSER) $< > $@ +outputs/%.processed: %.html 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 - @$(DIFF) $< $@ - -all: tests + -$(DIFF) $< $@ tests: outputs compares outputs: $(OUTPUTS) compares: $(RESULTS) - @$(ECHO) All tests passed OK + @$(ECHO) DONE clean: $(RM) -f outputs/*.processed + +install: +install-exec: +install-data: