File:  [parser3project] / parser3 / tests / Makefile
Revision 1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Mon Mar 3 13:33:00 2003 UTC (23 years, 6 months ago) by paf
removed -H command line key, now testing using .sh file with SERVER_SOFTWARE=xxx

ifdef COMSPEC
	PARSER=./parser-cygwin.sh
else
	PARSER=./parser-unix.sh
endif

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) $< > $@

.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: