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

« back to all changes in this revision

Viewing changes to examples/python/IDL/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/IDL
 
7
 
 
8
## get  configured  (standard) variables - checkout or modify
 
9
## scripts/config.vars[.in] for details.
 
10
@stdvars@
 
11
 
 
12
 
 
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' 
 
16
dos2unix = :
 
17
 
 
18
### when running python we invoke python like ..
 
19
python    = /bin/sh @abs_this_builddir@/scripts/python.sh
 
20
 
 
21
## get configured rules
 
22
@stdmake@
 
23
 
 
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 
 
27
## antlr.jar before. 
 
28
this : compile
 
29
all  :: compile
 
30
 
 
31
 
 
32
g_FILES  = \
 
33
 $(_srcdir)/idl.g \
 
34
 $(eol)
 
35
 
 
36
g_py_FILES = \
 
37
 idl_l.py \
 
38
 idl_p.py \
 
39
 $(eol)
 
40
 
 
41
compile : $(g_py_FILES)
 
42
 
 
43
%.py : $(_srcdir)/%.py
 
44
        @-rm -f $@ &&cp $< $@
 
45
 
 
46
 
 
47
test :: test1
 
48
 
 
49
test1_deps = \
 
50
        idl.py \
 
51
        $(g_py_FILES) \
 
52
        $(buildtree)/scripts/python.sh \
 
53
        $(eol)
 
54
 
 
55
test1_cmd = \
 
56
        $(python) idl_l.py < $(_srcdir)/idl.in ;\
 
57
        $(python) idl.py   < $(_srcdir)/idl.in ;\
 
58
        $(eol)
 
59
 
 
60
test1 : $(test1_deps)
 
61
        @ $(test1_cmd)
 
62
 
 
63
$(g_py_FILES) : $(g_FILES)
 
64
        @ rm -f $(g_py_FILES)
 
65
        @ @ANTLR_COMPILE_CMD@ $(g_FILES)
 
66
        @ $(dos2unix) $(g_py_FILES)
 
67
 
 
68
$(g_py_FILES) : @ANTLR_JAR@
 
69
$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
 
70
 
 
71
### cleanup idl
 
72
clean ::
 
73
        @echo cleaning idl ...
 
74
        @ -rm -f $(g_py_FILES)
 
75
        @ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
 
76
 
 
77
 
 
78
 
 
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] 
 
83
@stddeps@
 
84
 
 
85
.PHONY: compile
 
86
.PHONY: test1