PNG_FIGS = $(wildcard *.png)
PDF_FIGS = $(patsubst %.png,%.pdf,$(PNG_FIGS))
+MANUAL_INCLUDES = .version tests/programs/Makefile.omk \
+tests/libraries/Makefile.omk tests/default-config/Makefile.omk \
+tests/default-config/subdir/Makefile.omk \
+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
+
%.pdf: %.png
convert $< -density 150 $@
-%.pdf: %.texinfo $(PNG_FIGS) .version
+%.pdf: %.texinfo $(PNG_FIGS) $(MANUAL_INCLUDES)
texi2dvi --pdf $<
texi2dvi --pdf $<
-%.txt: %.texinfo .version
+%.txt: %.texinfo $(MANUAL_INCLUDES)
makeinfo --no-headers --force -o $@ $<
-%.html: %.texinfo .version
+%.html: %.texinfo $(MANUAL_INCLUDES)
makeinfo --html --no-split -o $@ $<
# texi2html --l2h $<
# Fix texinfo HTML output
source @file{test.c}.
@example
-@verbatiminclude ../tests/programs/Makefile.omk
+@verbatiminclude tests/programs/Makefile.omk
@end example
@noindent The variables are:
by other programs.
@example
-@verbatiminclude ../tests/libraries/Makefile.omk
+@verbatiminclude tests/libraries/Makefile.omk
@end example
@noindent Variables for use with libraries are:
@noindent Example of using @code{default_CONFIG}. @file{Makefile.omk} reads like:
@example
-@verbatiminclude ../tests/config/default/Makefile.omk
+@verbatiminclude tests/default-config/Makefile.omk
@end example
@noindent and @file{subdir/Makefile.omk} like:
@example
-@verbatiminclude ../tests/config/default/subdir/Makefile.omk
+@verbatiminclude tests/default-config/subdir/Makefile.omk
@end example
@noindent After running @command{make default-config}, the content of
@file{config.omk-default} will be:
@example
-@verbatiminclude ../tests/config/default/config.omk-correct
+@verbatiminclude tests/default-config/config.omk-correct
@end example
@node Using Configuration Parameters, Common Variables, Specifying Configuration Parameters, Configuration and Conditional Compilation