diff options
-rw-r--r-- | support/make/verbfilter.mk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/support/make/verbfilter.mk b/support/make/verbfilter.mk new file mode 100644 index 0000000000..c01f5bd851 --- /dev/null +++ b/support/make/verbfilter.mk @@ -0,0 +1,40 @@ +############################################################-*-Makefile-*-#### +# VERBFILTER - Verbfilter Latex Files +############################################################################## +# $Id$ + +############################################################################## +# Usage +# +# make [VERBFILTER=<java-file>] <*.tex> +# +############################################################################## +# Variables +# +# VERBFILTER = Verb filter source file +# +############################################################################## +# Examples +# +# Generate reference.tex by verbfiltering reference.verb.tex +# +# make VERBFILTER=../../support/latex/verbfilterScala.java reference.tex +# +############################################################################## + +############################################################################## +# Defaults + +JAVA ?= java +JAVAC ?= javac + +############################################################################## +# Rules + +%.tex : %.verb.tex $(VERBFILTER:%.java=%.class) + $(JAVA) -cp $(dir $(VERBFILTER)) $(notdir $(VERBFILTER:%.java=%)) $< $@ + +$(VERBFILTER:%.java=%.class): $(VERBFILTER) + $(JAVAC) $? + +############################################################################## |