Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 1 | # src/Makefile |
2 | |||||
3 | TOP = .. | ||||
4 | |||||
5 | include $(TOP)/configs/current | ||||
6 | |||||
7 | SUBDIRS = $(SRC_DIRS) | ||||
8 | |||||
9 | |||||
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 10 | default: message $(TOP)/$(LIB_DIR) subdirs |
Brian Paul | 0ad6554 | 2004-08-25 14:49:41 +0000 | [diff] [blame] | 11 | |
12 | |||||
13 | message: | ||||
14 | @echo "Making sources for" $(CONFIG_NAME) | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 15 | |
16 | |||||
17 | subdirs: | ||||
18 | @for dir in $(SUBDIRS) ; do \ | ||||
19 | if [ -d $$dir ] ; then \ | ||||
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 20 | (cd $$dir && $(MAKE)) || exit 1; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 21 | fi \ |
22 | done | ||||
23 | |||||
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 24 | install: |
25 | @for dir in $(SUBDIRS) ; do \ | ||||
26 | if [ -d $$dir ] ; then \ | ||||
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 27 | (cd $$dir && $(MAKE) install) || exit 1 ; \ |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 28 | fi \ |
29 | done | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 30 | |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 31 | $(TOP)/$(LIB_DIR): |
32 | -mkdir $(TOP)/$(LIB_DIR) | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 33 | |
34 | |||||
35 | clean: | ||||
36 | @for dir in $(SUBDIRS) ; do \ | ||||
37 | if [ -d $$dir ] ; then \ | ||||
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 38 | (cd $$dir && $(MAKE) clean) ; \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 39 | fi \ |
40 | done |