source: trunk/yao/share/antlr-2.7.7/examples/python/multiParser/Makefile @ 1

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

Initial import of YAO sources

  • Property svn:eol-style set to native
File size: 15.5 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/filter
7
8## get  configured  (standard) variables - checkout or modify
9## scripts/config.vars[.in] for details.
10
11## --*- Makefile -*--
12SUBDIRS         := 
13
14## helper utilities ..
15INSTALL         = /usr/bin/install -c
16MKDIR           = /bin/mkdir
17RM              = /bin/rm -r -f
18RMF             = /bin/rm -r -f
19TAR             = /bin/tar
20TOUCH           = /bin/touch
21CHMOD           = /bin/chmod
22SED             = /bin/sed
23GREP            = /bin/grep
24CAT             = /bin/cat
25CHMOD           = /bin/chmod
26CP              = /bin/cp
27ECHO            = /bin/echo
28
29# usual dribble
30exec_prefix     = ${prefix}
31prefix          = /usr/local
32program_transform_name = s,x,x,
33bindir          = ${exec_prefix}/bin
34sbindir         = ${exec_prefix}/sbin
35libexecdir      = ${exec_prefix}/libexec
36datadir         = ${prefix}/share
37sysconfdir      = ${prefix}/etc
38sharedstatedir  = ${prefix}/com
39localstatedir   = ${prefix}/var
40libdir          = ${exec_prefix}/lib
41includedir      = ${prefix}/include
42oldincludedir   = /usr/include
43infodir         = ${prefix}/info
44mandir          = ${prefix}/man
45build_alias     = 
46host_alias      = 
47target_alias    = 
48build           = x86_64-unknown-linux-gnu
49build_cpu       = x86_64
50build_vendor    = unknown
51build_os        = linux-gnu
52host            = x86_64-unknown-linux-gnu
53host_cpu        = x86_64
54host_vendor     = unknown
55host_os         = linux-gnu
56just_make       = /usr/bin/make
57
58# Version stuff...
59VERSION         = 2
60SUBVERSION      = 7
61PATCHLEVEL      = 7
62PACKAGE_NAME    = antlr
63PACKAGE_VERSION = 2.7.7
64versioneddir    = antlr-2.7.7
65
66# navigation
67builddir        = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
68buildtree       = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
69sourcetree      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/..
70
71## Two abbrevs to shorten things. $(thisdir) shall be the current
72## working  directory  as  absolute  name  and $(_srcdir) is it's
73## source dir companion. That means that  $(thisdir)/Makefile has
74## been generated by $(_srcdir)/Makefile.in.
75_srcdir         = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir)
76thisdir         = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/$(subdir)
77
78# variable 'srcdir' is deprecated - use sourcetree
79srcdir          = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/..
80# variable 'objdir' is deprecated - use buildtree
81objdir          = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
82
83# other
84verbose         = 0
85
86## SUBDIRS you want to exclude (separate them by using "|").
87SUBDIRS_NOT    := .
88
89CLR            = /usr/bin/mono
90
91ANTLR_JAR      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar
92ANTLR_LIB      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a
93ANTLR_NET      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll
94ANTLR_PY       = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/python/antlr/python.py
95ASTFRAME_NET   = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll
96
97antlr_jar      = antlr.jar
98antlr_lib      = libantlr.a
99antlr_net      = antlr.runtime.dll
100antlr_py       = python.py
101astframe_net   = antlr.astframe.dll
102
103## two abbrevs to make shorten things
104_srcdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/examples/python/multiParser/../../../examples/python/filter
105thisdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/examples/python/filter
106
107
108### how to get rid of damned dos line ending style and -- al-
109### most equally worse -- stupid tab character.
110### dos2unix  = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
111dos2unix = :
112
113### when running python we invoke python like ..
114python    = /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/python.sh
115
116## get configured rules
117
118##xxxxxxxxxxxxxxxxxxxxxx --*- Makefile -*-- xxxxxxxxxxxxxxxx>>> config.make
119## By default, make will jump into any sub directory that contains a   file
120## named "Makefile". This is done  in the order implied by "/bin/ls"  which
121## is in almost  all  cases  correct  (note  that  you  should  not  design
122## Makefiles which depend on a specific invocation order). You can override
123## specific  behaviour  by  using  variable SUBDIRS. If given and not empty,
124## "/bin/ls" is not used. Also,  if you want to disable jumping subdirs you
125## may  use  either ".", ".."  as  value for SUBDIRS. Note that SUBDIRS may
126## contain any directory (except "." and "..).
127
128## This is very much  GNU specific, sigh.  Variable SUBDIRS is used to tell
129## make which  subdirectory to jump. It's  value is normally preset or just
130## empty, in which case /bin/ls is used as discussed above. However, I also
131## want that a user can say
132##
133##  make SUBDIRS="d1 d2 .. dn"
134##
135## That means, ignore defaults and go ahead and make exactly this director-
136## ies mentioned. Of course, this should only have  an  impact  on Makefile
137## being used  by  "make"  but not for any makefils in d1 .. dn, right? For
138## example, if di  needs  to  make directories a,b and c, then they need to
139## be made of course. So all burns down to the question how to prevent a
140## variable from being passed to submakes. Below you can see the answer. If
141## you believe that there's a simpler answer to the problem don't hesistate
142## to try it out. If  it  works, send me an email: ora dot et dot labora at
143## web dot de. But be warned - you need to try all variations.
144##
145## Here is in short what  I  found  and how  it  works.  Variables given on
146## command line  are  saved  in  variable  MAKEOVERRIDES. This  variable is
147## exported  and  passed down. On  invocation  of a submake file, make will
148## have a  look  into MAKEOVERRIDES  and unpack each variable found therein.
149## Therefore I'm just going to  remove  every (?) occurance of SUBDIRS from
150## this variable.
151MAKEOVERRIDES := $(patsubst SUBDIRS=%,,$(MAKEOVERRIDES))
152
153
154## The actuall rule on how to make a recursive target.
155all clean distclean test install force-target clean-target :: 
156        @dirs="$(SUBDIRS)" ; \
157        test -z "$${dirs}" && { \
158                dirs=`/bin/ls` ; \
159  } ; \
160        for d in . $${dirs} ; do \
161                case $${d} in \
162                . | .. ) ;; \
163          $(SUBDIRS_NOT) ) ;; \
164                *) \
165                if test -f "$${d}/Makefile" ; then \
166                  echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ; \
167                  echo ">> /usr/bin/make -C $(subdir)/$${d} $@                          " ; \
168                        echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ; \
169                        /usr/bin/make -C "$$d" $@ || exit 1 ;\
170                fi ; \
171                ;; \
172                esac ; \
173        done
174
175## For historical  reasons only you can make local targets as "this-*" or
176## "*-this" rules. The  default is to do nothing. Although this targets
177## exists, it is recommended to define further "all", "clean" etc. double
178## colon rules.
179 
180all       :: this-all all-this
181clean     :: this-clean clean-this
182distclean :: this-distclean distclean-this
183test      :: this-test test-this
184install   :: this-install install-this
185
186this-all ::
187this-clean ::
188this-distclean ::
189this-test ::
190this-install ::
191
192all-this ::
193clean-this ::
194distclean-this ::
195test-this ::
196install-this ::
197
198force-target :: clean-target all
199
200distclean :: clean
201
202distclean ::
203        $(RM) Makefile
204
205## xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<< config.make
206
207## By default we compile class files so we are ready to carry
208## out a test. Note that deps have been setup in such a way
209## that you can do a 'make compile' whithout having made
210## antlr.jar before.
211this : compile
212all  :: compile
213
214
215g_FILES  = \
216 $(_srcdir)/filter.g \
217 $(eol)
218
219g_py_FILES = \
220 filter_l.py \
221 $(eol)
222
223compile : $(g_py_FILES)
224
225
226test :: test1
227
228test1_deps = \
229        $(g_py_FILES) \
230        $(buildtree)/scripts/python.sh \
231        $(eol)
232
233test1_cmd = \
234        $(python) filter_l.py < $(_srcdir)/filter.in \
235        $(eol)
236
237test1 : $(test1_deps)
238        @ $(test1_cmd)
239
240$(g_py_FILES) : $(g_FILES)
241        @ /bin/rm -r -f $(g_py_FILES)
242        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/antlr.sh $(g_FILES)
243        @ $(dos2unix) $(g_py_FILES)
244
245$(g_py_FILES) : /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar
246$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
247
248### cleanup filter
249clean ::
250        @/bin/echo cleaning filter ...
251        @ -/bin/rm -r -f $(g_py_FILES)
252        @ -/bin/rm -r -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
253
254
255
256### get configured dependencies - for example, just list
257### autoconf variable ANTLR_JAR as reference and it will
258### be  done  automatically  as stddeps contains appropr.
259### rule. For details, checkout scripts/config.vars[.in]
260
261## --*- Makefile -*--
262## Make listed targets even in case a file with same name exists.
263.PHONY: \
264 this \
265 all clean install test distclean \
266 this-all this-clean this-install this-test this-distclean \
267 all-this clean-this install-this test-this distclean-this \
268 $(eof)
269
270## delete suffix rules - shortens output when using -d and is not
271## used anyway (and should not be used).
272.SUFFIXES:
273
274Makefile :: /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir)/Makefile.in  \
275            /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps \
276                                          /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make \
277                                          /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars \
278            /usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status
279        @echo "*** update $(subdir)/Makefile"
280        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES="$(subdir)/Makefile" /bin/sh ./config.status -q
281
282/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps : \
283        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.deps.in
284        @echo "*** update $@"
285        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.deps /bin/sh ./config.status -q
286
287/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make : \
288        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.make.in
289        @echo "*** update $@"
290        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.make /bin/sh ./config.status -q
291
292/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars : \
293        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.vars.in
294        @echo "*** update $@"
295        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.vars /bin/sh ./config.status -q
296
297/usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status : \
298        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../configure
299        @echo "*** reconfigure $@ - stay tuned .."
300        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q --recheck
301        @echo "*** update all configured files .."
302        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q
303
304### In a pure devel mode there should be also a dependency listed on how
305### to make configure out of  configure.in.  This  requires that usr has
306### m4  and  autoconf (proper version) installed. Appropriate checks are
307### not done in configure. If so, then uncomment next lines:
308###
309###   @rule_configure_configure_in@
310###
311
312/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/antlr.sh : \
313        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/antlr.sh.in
314        @echo "*** update $@"
315        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/antlr.sh /bin/sh ./config.status -q
316
317/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cpp.sh : \
318        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cpp.sh.in
319        @echo "*** update $@"
320        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cpp.sh /bin/sh ./config.status -q
321
322/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/csc.sh : \
323        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/csc.sh.in
324        @echo "*** update $@"
325        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/csc.sh /bin/sh ./config.status -q
326
327/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh : \
328        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cxx.sh.in
329        @echo "*** update $@"
330        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cxx.sh /bin/sh ./config.status -q
331
332/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/jar.sh : \
333        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/jar.sh.in
334        @echo "*** update $@"
335        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/jar.sh /bin/sh ./config.status -q
336
337/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/javac.sh : \
338        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/javac.sh.in
339        @echo "*** update $@"
340        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/javac.sh /bin/sh ./config.status -q
341
342/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/java.sh : \
343        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/java.sh.in
344        @echo "*** update $@"
345        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/java.sh /bin/sh ./config.status -q
346
347/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/lib.sh : \
348        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/lib.sh.in
349        @echo "*** update $@"
350        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/lib.sh /bin/sh ./config.status -q
351
352/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/link.sh : \
353        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/link.sh.in
354        @echo "*** update $@"
355        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/link.sh /bin/sh ./config.status -q
356
357/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/pyinst.sh : \
358        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/pyinst.sh.in
359        @echo "*** update $@"
360        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/pyinst.sh /bin/sh ./config.status -q
361
362/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/python.sh : \
363        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/python.sh.in
364        @echo "*** update $@"
365        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/python.sh /bin/sh ./config.status -q
366
367
368## This rule shall ensure that ANTLR_NET is up-to-date. The rule is a
369## double colon rule, ie. further  rules  with the same target may be
370## added. For unknown reasons, double colon rules are always phony,ie.
371## getting executed even in case target exists. We break the infinite
372## loop,  we only  jump  into  subdir  "lib/csharp/src" if we are not
373## already in. It is very important that  each Makefile[.in] sets the
374## variable $(subdir) proper.
375
376/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll ::
377        @ subdir="lib/csharp/antlr.runtime" ; \
378    case $(subdir) in \
379          $$subdir ) ;; \
380          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
381        test -f "$$d/Makefile" && {  \
382         /usr/bin/make -C "$$d" $@ ; \
383        }       \
384        ;; \
385    esac
386
387/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll ::
388        @ subdir="lib/csharp/antlr.astframe" ; \
389    case $(subdir) in \
390          $$subdir ) ;; \
391          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
392        test -f "$$d/Makefile" && {  \
393         /usr/bin/make -C "$$d" $@ ; \
394        }       \
395        ;; \
396    esac
397
398
399/usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar ::
400        @ subdir="antlr" ; \
401    case $(subdir) in \
402          $$subdir ) ;; \
403          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
404        test -f "$$d/Makefile" && {  \
405         /usr/bin/make -C "$$d" $@ ; \
406        }       \
407        ;; \
408    esac
409
410
411/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a ::
412        @ subdir="lib/cpp/src" ; \
413    case $(subdir) in \
414          $$subdir ) ;; \
415          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
416        test -f "$$d/Makefile" && {  \
417         /usr/bin/make -C "$$d" $@ ; \
418        }       \
419        ;; \
420    esac
421
422
423.PHONY: compile
424.PHONY: test1
Note: See TracBrowser for help on using the repository browser.