--- parser3/tests/Makefile 2003/02/26 10:17:33 1.1.2.1 +++ parser3/tests/Makefile 2003/03/06 08:15:39 1.1.2.5 @@ -1,13 +1,10 @@ ifdef COMSPEC - PARSER=../src/targets/cgi/debug/parser3.exe + PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe else - PARSER=../src/targets/cgi/parser3 + PARSER_EXECUTABLE=../src/targets/cgi/parser3 endif -PAFLAGS=-H - -# - +RUN_PARSER=./run_parser.sh DIFF=diff ECHO=echo RM=rm @@ -17,15 +14,17 @@ 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 Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) + $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@ -.PHONY: FORCE all clean +.PHONY: FORCE all tests clean results/%.processed: outputs/%.processed FORCE @$(DIFF) $< $@ -all: tests +all: + @$(ECHO) this folder contains Parser3 tests, you can run them by command: + @$(ECHO) make tests tests: outputs compares