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