Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/extras/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1455 - (show annotations) (download)
Sat Jul 6 09:57:31 2013 UTC (11 years, 8 months ago) by amb
File size: 1455 byte(s)
Update some Makefiles for running 'make test' from a clean set of source code.

1 # Extra files Makefile
2 #
3 # Part of the Routino routing software.
4 #
5 # This file Copyright 2013 Andrew M. Bishop
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program 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 Affero General Public License for more details.
16 #
17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #
20
21 # All configuration is in the top-level Makefile.conf
22
23 include ../Makefile.conf
24
25 # Sub-directories and sub-makefiles
26
27 SUBFILES=$(wildcard */Makefile)
28 SUBDIRS=$(foreach f,$(SUBFILES),$(dir $f))
29
30 ########
31
32 all:
33 for dir in $(SUBDIRS); do \
34 ( cd $$dir && $(MAKE) $@ ); \
35 done
36
37 ########
38
39 test:
40 for dir in $(SUBDIRS); do \
41 ( cd $$dir && $(MAKE) $@ ); \
42 done
43
44 ########
45
46 install:
47 for dir in $(SUBDIRS); do \
48 ( cd $$dir && $(MAKE) $@ ); \
49 done
50
51 ########
52
53 clean:
54 for dir in $(SUBDIRS); do \
55 ( cd $$dir && $(MAKE) $@ ); \
56 done
57
58 ########
59
60 distclean:
61 for dir in $(SUBDIRS); do \
62 ( cd $$dir && $(MAKE) $@ ); \
63 done
64
65 ########
66
67 .PHONY:: all test install clean distclean