~ubuntu-branches/ubuntu/breezy/antlr/breezy

« back to all changes in this revision

Viewing changes to examples/python/multiParser/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-06-29 16:11:22 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050629161122-g81crc3z92p5xhsg
Tags: 2.7.5-6ubuntu4
Build depend on java-gcj-compat-dev, depend on java-gcj-compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
 
 
5
## do not change this value 
 
6
subdir=examples/python/filter
 
7
 
 
8
## get  configured  (standard) variables - checkout or modify
 
9
## scripts/config.vars[.in] for details.
 
10
@stdvars@
 
11
 
 
12
## two abbrevs to make shorten things
 
13
_srcdir = @abs_top_srcdir@/examples/python/filter
 
14
thisdir = @abs_this_builddir@/examples/python/filter
 
15
 
 
16
 
 
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' 
 
20
dos2unix = :
 
21
 
 
22
### when running python we invoke python like ..
 
23
python    = /bin/sh @abs_this_builddir@/scripts/python.sh
 
24
 
 
25
## get configured rules
 
26
@stdmake@
 
27
 
 
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 
 
31
## antlr.jar before. 
 
32
this : compile
 
33
all  :: compile
 
34
 
 
35
 
 
36
g_FILES  = \
 
37
 $(_srcdir)/filter.g \
 
38
 $(eol)
 
39
 
 
40
g_py_FILES = \
 
41
 filter_l.py \
 
42
 $(eol)
 
43
 
 
44
compile : $(g_py_FILES)
 
45
 
 
46
 
 
47
test :: test1
 
48
 
 
49
test1_deps = \
 
50
        $(g_py_FILES) \
 
51
        $(buildtree)/scripts/python.sh \
 
52
        $(eol)
 
53
 
 
54
test1_cmd = \
 
55
        $(python) filter_l.py < $(_srcdir)/filter.in \
 
56
        $(eol)
 
57
 
 
58
test1 : $(test1_deps)
 
59
        @ $(test1_cmd)
 
60
 
 
61
$(g_py_FILES) : $(g_FILES)
 
62
        @ rm -f $(g_py_FILES)
 
63
        @ @ANTLR_COMPILE_CMD@ $(g_FILES)
 
64
        @ $(dos2unix) $(g_py_FILES)
 
65
 
 
66
$(g_py_FILES) : @ANTLR_JAR@
 
67
$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
 
68
 
 
69
### cleanup filter
 
70
clean ::
 
71
        @echo cleaning filter ...
 
72
        @ -rm -f $(g_py_FILES)
 
73
        @ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
 
74
 
 
75
 
 
76
 
 
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] 
 
81
@stddeps@
 
82
 
 
83
.PHONY: compile
 
84
.PHONY: test1