Debian Codegraph @

lib/mllpt-lib/ml-lpt/ml-antlr/Makefile.mlton

raw
1 # Makefile
2 #
3 # COPYRIGHT (c) 2009 The Fellowship of SML/NJ (http://www.smlnj.org)
4 # All rights reserved.
5 #
6 # Makefile for building ml-antlr using MLton
7 #
8
9 SHELL = /bin/sh
10
11 MLTON = mlton
12 MLTON_FLAGS =
13
14 TARGET = mlantlr
15
16 SML_BE = BackEnds/SML
17 LATEX_BE = BackEnds/LaTeX
18
19 TEMPLATES = $(SML_BE)/string-template.sml \
20 $(LATEX_BE)/string-template.sml
21
22 SML_FILES =
23
24 MLB_FILES = ../common/lpt-common.mlb \
25 ../lib/ml-lpt-lib.mlb \
26 $(TARGET).mlb
27
28 $(TARGET) : $(MLB_FILES) $(SML_FILES) $(TEMPLATES)
29 $(MLTON) -output $(TARGET) $(MLTON_FLAGS) $(TARGET).mlb
30
31 # a generator for the template string files
32 #
33 GEN = ../gen/gen-template-struct
34
35 $(GEN):
36 (cd ../gen; make gen-template-struct)
37
38 $(SML_BE)/string-template.sml: $(GEN) $(SML_BE)/template.sml
39 $(GEN) SMLTemplate $(SML_BE)/template.sml $(SML_BE)/string-template.sml
40
41 $(LATEX_BE)/string-template.sml: $(GEN) $(LATEX_BE)/template.tex
42 $(GEN) LaTeXTemplate $(LATEX_BE)/template.tex $(LATEX_BE)/string-template.sml
43
44 .PHONEY: clean
45 clean:
46 rm -f $(TARGET)
47 rm -f $(TEMPLATES)
48 (cd ../gen; make clean)