]> rtime.felk.cvut.cz Git - omk.git/blobdiff - doc/Makefile
snippets/linux-kernel.omk: Linux 6.x kernel series modpost requirements workaround.
[omk.git] / doc / Makefile
index 87dd9a5c2e10a340394d598b0e7a5c745fa83073..6e6a5b3b488709f08e0b0f9f8f072a9d4870e3c0 100644 (file)
@@ -20,14 +20,18 @@ 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() { local d=$(CURDIR)/$(DIR)/$$(echo $$1|tr " " -|tr A-Z a-z); mkdir -p $$d && cd $$d; }; WVPASS() { :; }; needs_valid_CC() { :; }; omkize() { :; }' > $(DIR)/wvtest.sh
+       cd $(DIR) && ../../../$(DIR)
 
 %.pdf: %.png
        convert $< -density 150 $@
 
+# We want to use synctex. texi2dvi does not support this directly, so
+# we use the PDFTEX variable for this.
+export PDFTEX = pdfetex -synctex=1
+
 %.pdf: %.texinfo $(PNG_FIGS) $(MANUAL_INCLUDES)
        texi2dvi --pdf $<
        texi2dvi --pdf $<