summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 26e4b8790d09c10cf47f7ad7b56d66a8f0601fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
#   Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
#

#   This file is part of Colm.
#
#   Colm is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   Colm is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with Colm; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 


BUILD_SUBDIRS = common colm
ALL_SUBDIRS = $(BUILD_SUBDIRS) test

#*************************************

# Programs
CXX = @CXX@

# Get the version info.
include version.mk

# build targets
all: $(BUILD_SUBDIRS)

.PHONY: $(BUILD_SUBDIRS)

$(BUILD_SUBDIRS):
	@cd $@ && $(MAKE)

# clean targets.

CLEAN_SUBDIRS = $(ALL_SUBDIRS:%=%-clean)

.PHONY: $(CLEAN_SUBDIRS)

$(CLEAN_SUBDIRS):
	@cd $(@:%-clean=%) && $(MAKE) clean

clean: $(CLEAN_SUBDIRS)
	rm -f tags

# distcleaan targets

DISTCLEAN_SUBDIRS = $(ALL_SUBDIRS:%=%-distclean)

.PHONY: $(DISTCLEAN_SUBDIRS)

$(DISTCLEAN_SUBDIRS):
	@cd $(@:%-distclean=%) && $(MAKE) clean

distclean: $(DISTCLEAN_SUBDIRS)
	rm -f Makefile config.cache config.status config.log

#install targets

INSTALL_SUBDIRS = $(BUILD_SUBDIRS:%=%-install)

.PHONY: $(INSTALL_SUBDIRS)

$(INSTALL_SUBDIRS):
	@cd $(@:%-install=%) && $(MAKE) install

install: $(INSTALL_SUBDIRS)