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/parseBinary
8
## get configured (standard) variables - checkout or modify
9
## scripts/config.vars[.in] for details.
12
### how to get rid of damned dos line ending style and -- al-
13
### most equally worse -- stupid tab character.
14
### dos2unix = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
17
### when running python we invoke python like ..
18
python = /bin/sh @abs_this_builddir@/scripts/python.sh
20
## get configured rules
23
## By default we compile class files so we are ready to carry
24
## out a test. Note that deps have been setup in such a way
25
## that you can do a 'make compile' whithout having made
36
binary_p.py binary_l.py \
39
compile : $(g_py_FILES)
41
%.py : $(_srcdir)/%.py
50
$(buildtree)/scripts/python.sh \
54
$(python) binary_l.py < $(_srcdir)/binary.in \
60
$(g_py_FILES) : $(g_FILES)
62
@ @ANTLR_COMPILE_CMD@ $(g_FILES)
63
@ $(dos2unix) $(g_py_FILES)
65
$(g_py_FILES) : @ANTLR_JAR@
66
$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
70
@echo cleaning binary ...
71
@ -rm -f $(g_py_FILES)
72
@ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
76
### get configured dependencies - for example, just list
77
### autoconf variable ANTLR_JAR as reference and it will
78
### be done automatically as stddeps contains appropr.
79
### rule. For details, checkout scripts/config.vars[.in]