Removed Java code generation from rlcodegen. Added the cd javagen && make to
[external/ragel.git] / Makefile.in
1 #
2 #   Copyright 2001-2006 Adrian Thurston <thurston@cs.queensu.ca>
3 #
4
5 #   This file is part of Ragel.
6 #
7 #   Ragel is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License as published by
9 #   the Free Software Foundation; either version 2 of the License, or
10 #   (at your option) any later version.
11 #
12 #   Ragel is distributed in the hope that it will be useful,
13 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #   GNU General Public License for more details.
16 #
17 #   You should have received a copy of the GNU General Public License
18 #   along with Ragel; if not, write to the Free Software
19 #   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
20
21 SUBDIRS = common ragel rlcodegen javagen test examples doc
22
23 #*************************************
24
25 # Programs
26 CXX = @CXX@
27
28 # Get the version info.
29 include version.mk
30
31 # Rules.
32 all: 
33         @cd common && $(MAKE) && cd ../ragel && $(MAKE) && \
34                 cd ../rlcodegen && $(MAKE) && cd ../javagen && $(MAKE)
35
36 new-version:
37         sed 's/^\(Version:[[:space:]]*\)[0-9.]*$$/\1$(VERSION)/' ragel.spec > spec-new
38         cat spec-new > ragel.spec && rm spec-new
39
40 distclean: distclean-rec distclean-local
41
42 distclean-rec:
43         for dir in $(SUBDIRS); do cd $$dir; $(MAKE) distclean; cd ..; done
44
45 distclean-local: clean-local
46         rm -f Makefile config.cache config.status config.log
47
48 clean: clean-rec clean-local
49
50 clean-rec:
51         for dir in $(SUBDIRS); do cd $$dir; $(MAKE) clean; cd ..; done
52
53 clean-local:
54         rm -f tags
55
56 install:
57         @cd ragel && $(MAKE) install && cd ../rlcodegen && $(MAKE) install