Annotation of parser3/tests/Makefile, revision 1.2
1.2 ! paf 1: ifdef COMSPEC
! 2: PARSER_DIR=../src/targets/cgi/release
! 3: PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe
! 4: PARSER_CONFIG=$(PARSER_DIR)/auto.p
! 5: else
! 6: PARSER_DIR=../src/targets/cgi
! 7: PARSER_EXECUTABLE=$(PARSER_DIR)/parser3
! 8: PARSER_CONFIG=$(PARSER_DIR)/auto.p
! 9: endif
! 10:
! 11: RUN_PARSER=./run_parser.sh
! 12: DIFF=diff -b
! 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:
! 21: outputs/%.processed: %.html
! 22: # Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE) $(PARSER_CONFIG)
! 23: $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@
! 24:
! 25: .PHONY: FORCE all tests clean install install-exec install-data
! 26:
! 27: results/%.processed: outputs/%.processed FORCE
! 28: -$(DIFF) $< $@
! 29:
! 30: tests: outputs compares
! 31:
! 32: outputs: $(OUTPUTS)
! 33:
! 34: compares: $(RESULTS)
! 35: @$(ECHO) DONE
! 36:
! 37: clean:
! 38: $(RM) -f outputs/*.processed
! 39:
! 40: install:
! 41: install-exec:
! 42: install-data:
E-mail: