source: trunk/yao/share/antlr-2.7.7/examples/python/transform/Makefile.in @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 1.9 KB
Line 
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
6subdir=examples/python/transform
7
8## get  configured  (standard) variables - checkout or modify
9## scripts/config.vars[.in] for details.
10@stdvars@
11
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'
15dos2unix = :
16
17### when running python we invoke python like ..
18python    = /bin/sh @abs_this_builddir@/scripts/python.sh
19
20## get configured rules
21@stdmake@
22
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
26## antlr.jar before.
27this : compile
28all  :: compile
29
30
31g_FILES  = \
32 $(_srcdir)/transform.g \
33 $(eol)
34
35g_py_FILES = \
36 transform_l.py \
37 transform_p.py \
38 transform_w.py \
39 $(eol)
40
41compile : $(g_py_FILES)
42
43%.py : $(_srcdir)/%.py
44        @-@RMF@ $@ &&@CP@ $< $@
45
46
47test :: test1
48
49test1_deps = \
50        transform.py \
51        $(g_py_FILES) \
52        $(buildtree)/scripts/python.sh \
53        $(eol)
54
55test1_cmd = \
56        $(python) transform_l.py < $(_srcdir)/transform.in ;\
57        $(python) transform.py   < $(_srcdir)/transform.in ;\
58        $(eol)
59
60test1 : $(test1_deps)
61        @ $(test1_cmd)
62
63$(g_py_FILES) : $(g_FILES)
64        @ @RMF@ $(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 transform
72clean ::
73        @@ECHO@ cleaning transform ...
74        @ -@RMF@ $(g_py_FILES)
75        @ -@RMF@ *.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
Note: See TracBrowser for help on using the repository browser.