summaryrefslogtreecommitdiff
path: root/support/make/verbfilter.mk
blob: c01f5bd851ab6b009d677664d68ffb9f3521d219 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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) $?

##############################################################################