]> rtime.felk.cvut.cz Git - omk.git/blobdiff - doc/Makefile
Fix generation of test files included in the documentation
[omk.git] / doc / Makefile
index 81db85f5bb07bc9949f3e7316fd10b605359df51..c249be45fe07709070f9ddf243faf4fdb8e4d90c 100644 (file)
@@ -20,10 +20,10 @@ tests/default-config/config.omk-correct
 
 tests/%: DIR=$(shell echo $@|sed -e 's,\([^/]*/[^/]*\)/.*,\1,')
 tests/%:
-       rm -rf $(DIR) && \
-       mkdir -p $(DIR) && \
-       cd $(DIR) && \
-       sh ../../../$(DIR).files
+       rm -rf $(DIR)
+       mkdir -p $(DIR)
+       echo 'WVSTART() { if [ "$$WV" ]; then exit; else WV=1; fi; }; WVPASS() { :; }; needs_valid_CC() { :; }; omkize() { :; }' > $(DIR)/wvtest.sh
+       cd $(DIR) && ../../../$(DIR)
 
 %.pdf: %.png
        convert $< -density 150 $@