--- parser3/tests/Makefile 2003/02/26 10:17:33 1.1.2.1 +++ parser3/tests/Makefile 2005/12/19 13:48:04 1.4 @@ -1,15 +1,14 @@ ifdef COMSPEC - PARSER=../src/targets/cgi/debug/parser3.exe + PARSER_DIR=../src/targets/cgi/release + PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe else - PARSER=../src/targets/cgi/parser3 + PARSER_DIR=../src/targets/cgi + PARSER_EXECUTABLE=$(PARSER_DIR)/parser3 endif +PARSER_CONFIG=results/auto.p -PAFLAGS=-H - -# - -DIFF=diff -ECHO=echo +RUN_PARSER=./run_parser.sh +DIFF=diff -b RM=rm # @@ -17,22 +16,23 @@ RM=rm OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html)) RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html)) -outputs/%.processed: %.html Makefile $(PARSER) - $(PARSER) $(PAFLAGS) $< > $@ +outputs/%.processed: %.html + $(RUN_PARSER) $(PARSER_EXECUTABLE) $< $(PARSER_CONFIG) > $@ -.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 clean: $(RM) -f outputs/*.processed + +install: +install-exec: +install-data: