Annotation of parser3/tests/Makefile, revision 1.1.2.6
1.1.2.1 paf 1: ifdef COMSPEC
1.1.2.6 ! paf 2: PARSER_DIR=../src/targets/cgi/debug
! 3: PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe
! 4: PARSER_CONFIG=$(PARSER_DIR)/auto.p
1.1.2.1 paf 5: else
1.1.2.6 ! paf 6: PARSER_DIR=../src/targets/cgi
! 7: PARSER_EXECUTABLE=$(PARSER_DIR)/parser3
! 8: PARSER_CONFIG=$(PARSER_DIR)/auto.p
1.1.2.1 paf 9: endif
10:
1.1.2.3 paf 11: RUN_PARSER=./run_parser.sh
1.1.2.1 paf 12: DIFF=diff
13: ECHO=echo
14: RM=rm
15:
16: #
17:
18: OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html))
19: RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html))
20:
1.1.2.6 ! paf 21: outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) $(PARSER_CONFIG)
1.1.2.3 paf 22: $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@
1.1.2.1 paf 23:
1.1.2.4 paf 24: .PHONY: FORCE all tests clean
1.1.2.1 paf 25:
26: results/%.processed: outputs/%.processed FORCE
1.1.2.6 ! paf 27: -$(DIFF) $< $@
1.1.2.1 paf 28:
1.1.2.4 paf 29: all:
1.1.2.5 paf 30: @$(ECHO) this folder contains Parser3 tests, you can run them by command:
31: @$(ECHO) make tests
1.1.2.1 paf 32:
33: tests: outputs compares
34:
35: outputs: $(OUTPUTS)
36:
37: compares: $(RESULTS)
1.1.2.6 ! paf 38: @$(ECHO) DONE
1.1.2.1 paf 39:
40: clean:
41: $(RM) -f outputs/*.processed
E-mail: