ifdef COMSPEC
PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe
else
PARSER_EXECUTABLE=../src/targets/cgi/parser3
endif
RUN_PARSER=./run_parser.sh
DIFF=diff
ECHO=echo
RM=rm
#
OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html))
RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html))
outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE)
$(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@
.PHONY: FORCE all tests clean
results/%.processed: outputs/%.processed FORCE
@$(DIFF) $< $@
all:
@$(ECHO) this folder contains Parser3 tests, you can run them by 'make tests' command
tests: outputs compares
outputs: $(OUTPUTS)
compares: $(RESULTS)
@$(ECHO) All tests passed OK
clean:
$(RM) -f outputs/*.processed
E-mail: