File:  [parser3project] / parser3 / tests / Makefile
Revision 1.1.2.8: download - view: text, annotated - select for diffs - revision graph
Wed Mar 12 14:20:39 2003 UTC (23 years, 2 months ago) by paf
*** empty log message ***

ifdef COMSPEC
	PARSER_DIR=../src/targets/cgi/debug
	PARSER_EXECUTABLE=$(PARSER_DIR)/parser3.exe
	PARSER_CONFIG=$(PARSER_DIR)/auto.p
else
	PARSER_DIR=../src/targets/cgi
	PARSER_EXECUTABLE=$(PARSER_DIR)/parser3
	PARSER_CONFIG=$(PARSER_DIR)/auto.p
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) $(PARSER_CONFIG)
	$(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@

.PHONY: FORCE all tests clean install install-exec install-data

results/%.processed: outputs/%.processed FORCE
	-$(DIFF) $< $@

tests: outputs compares

outputs: $(OUTPUTS)

compares: $(RESULTS)
	@$(ECHO) DONE

clean:
	$(RM) -f outputs/*.processed

install:
install-exec:
install-data:

E-mail: