File:  [parser3project] / parser3 / tests / Makefile
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Feb 26 10:17:33 2003 UTC (23 years, 6 months ago) by paf
hash cloning fixed

ifdef COMSPEC
	PARSER=../src/targets/cgi/debug/parser3.exe
else
	PARSER=../src/targets/cgi/parser3
endif

PAFLAGS=-H

#

DIFF=diff
ECHO=echo
RM=rm

#

OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html))
RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html))

outputs/%.processed: %.html Makefile $(PARSER)
	$(PARSER) $(PAFLAGS) $< > $@

.PHONY: FORCE all clean

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

all: tests

tests: outputs compares

outputs: $(OUTPUTS)

compares: $(RESULTS)
	@$(ECHO) All tests passed OK

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

E-mail: