Annotation of parser3/tests/Makefile, revision 1.1.2.4

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

E-mail: