summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--support/make/verbfilter.mk21
2 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 70c2383c0b..88ca235881 100644
--- a/Makefile
+++ b/Makefile
@@ -187,7 +187,6 @@ distclean : clean
$(RM) $(TOOLS_JAR_ARCHIVE)
$(RM) $(SCRIPTS_WRAPPER_LINKS)
$(RM) $(SCRIPTS_WRAPPER)
- $(RM) $(ROOT)/support/latex/*.class
sources : lamplib
sources : meta
diff --git a/support/make/verbfilter.mk b/support/make/verbfilter.mk
index 46c304690c..984313b30b 100644
--- a/support/make/verbfilter.mk
+++ b/support/make/verbfilter.mk
@@ -7,12 +7,12 @@
# Usage
#
# make verbfilter[.clean|.distclean]
-# make [VERBFILTER=<verbfilter-basename>] <*.tex>
+# make [VERBFILTER=<verbfilter-source-file>] <*.tex>
#
##############################################################################
# Variables
#
-# VERBFILTER = Verb filter base name
+# VERBFILTER = Verb filter source file
#
##############################################################################
# Examples
@@ -34,6 +34,13 @@
JAVA ?= java
JAVAC ?= javac
+VERBFILTER ?= $(PROJECT_SUPPORTDIR)/latex/verbfilterScala.java
+
+##############################################################################
+# Values
+
+verbfilter = $(VERBFILTER:%.java=%)
+verbfilter_CLASS = $(PROJECT_OUTPUTDIR)/$(verbfilter).class
##############################################################################
# Commands
@@ -52,7 +59,7 @@ verbfilter.distclean :
echo $(RM) "$${file%.verb.tex}.tex"; \
$(RM) "$${file%.verb.tex}.tex" ); \
done
- $(RM) $(VERBFILTER:%=%.class)
+ $(RM) $(verbfilter_CLASS)
.PHONY : verbfilter
.PHONY : verbfilter.clean
@@ -61,13 +68,13 @@ verbfilter.distclean :
##############################################################################
# Rules
-%.tex : %.verb.tex $(VERBFILTER:%=%.class)
- $(JAVA) -cp $(dir $(VERBFILTER)) $(notdir $(VERBFILTER)) $< $@
+%.tex : %.verb.tex $(verbfilter_CLASS)
+ $(JAVA) -cp $(dir $(verbfilter_CLASS)) $(notdir $(verbfilter)) $< $@
-$(VERBFILTER:%=%.class) : $(VERBFILTER:%=%.java)
+$(verbfilter_CLASS) : $(VERBFILTER)
$(JAVAC) $?
.PRECIOUS : %.tex
-.PRECIOUS : $(VERBFILTER:%=%.class)
+.PRECIOUS : $(verbfilter_CLASS)
##############################################################################