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/IDL
8
## get configured (standard) variables - checkout or modify
9
## scripts/config.vars[.in] for details.
13
### how to get rid of damned dos line ending style and -- al-
14
### most equally worse -- stupid tab character.
15
### dos2unix = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
18
### when running python we invoke python like ..
19
python = /bin/sh @abs_this_builddir@/scripts/python.sh
21
## get configured rules
24
## By default we compile class files so we are ready to carry
25
## out a test. Note that deps have been setup in such a way
26
## that you can do a 'make compile' whithout having made
41
compile : $(g_py_FILES)
43
%.py : $(_srcdir)/%.py
52
$(buildtree)/scripts/python.sh \
56
$(python) idl_l.py < $(_srcdir)/idl.in ;\
57
$(python) idl.py < $(_srcdir)/idl.in ;\
63
$(g_py_FILES) : $(g_FILES)
65
@ @ANTLR_COMPILE_CMD@ $(g_FILES)
66
@ $(dos2unix) $(g_py_FILES)
68
$(g_py_FILES) : @ANTLR_JAR@
69
$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
73
@echo cleaning idl ...
74
@ -rm -f $(g_py_FILES)
75
@ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
79
### get configured dependencies - for example, just list
80
### autoconf variable ANTLR_JAR as reference and it will
81
### be done automatically as stddeps contains appropr.
82
### rule. For details, checkout scripts/config.vars[.in]