@@ -296,13 +296,11 @@ $(win_pkg_name): $(THIS).exe $(win_docs)
296.PHONY: test test-markdown
296.PHONY: test test-markdown
297test: $(MAIN)
297test: $(MAIN)
298 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
298 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
299−strict:=$(MAIN)-strict
299+compat:=$(PWD)/hsmarkdown
300−cleanup_files+=$(strict)
302− echo "#!/bin/sh -e\n$(PWD)/$(MAIN) --strict \"\$$@\"" > $@; \
304−test-markdown: $(strict)
300+test-markdown: $(MAIN) $(compat)
301+ @# set path so that wrapper can be run even if pandoc not installed
302+ @PATH=$(PWD):$$PATH; export PATH; cd $(TESTDIR)/MarkdownTest_1.0.3 && \
305− @cd $(TESTDIR)/MarkdownTest_1.0.3 && perl MarkdownTest.pl -s $(PWD)/$(strict) -tidy
303+ perl MarkdownTest.pl -s $(compat) -tidy \
307# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
305# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
308src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')
306src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')