1
## This file is part of ANTLR (http://www.antlr.org). Have a
2
## look into LICENSE.txt for license details. This file has
3
## been written by (C) Wolfgang Haefelinger, 2004.
5
## do not change this value
6
subdir=examples/python/filter
8
## get configured (standard) variables - checkout or modify
9
## scripts/config.vars[.in] for details.
12
## two abbrevs to make shorten things
13
_srcdir = @abs_top_srcdir@/examples/python/filter
14
thisdir = @abs_this_builddir@/examples/python/filter
17
### how to get rid of damned dos line ending style and -- al-
18
### most equally worse -- stupid tab character.
19
### dos2unix = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
22
### when running python we invoke python like ..
23
python = /bin/sh @abs_this_builddir@/scripts/python.sh
25
## get configured rules
28
## By default we compile class files so we are ready to carry
29
## out a test. Note that deps have been setup in such a way
30
## that you can do a 'make compile' whithout having made
44
compile : $(g_py_FILES)
51
$(buildtree)/scripts/python.sh \
55
$(python) filter_l.py < $(_srcdir)/filter.in \
61
$(g_py_FILES) : $(g_FILES)
63
@ @ANTLR_COMPILE_CMD@ $(g_FILES)
64
@ $(dos2unix) $(g_py_FILES)
66
$(g_py_FILES) : @ANTLR_JAR@
67
$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
71
@echo cleaning filter ...
72
@ -rm -f $(g_py_FILES)
73
@ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
77
### get configured dependencies - for example, just list
78
### autoconf variable ANTLR_JAR as reference and it will
79
### be done automatically as stddeps contains appropr.
80
### rule. For details, checkout scripts/config.vars[.in]