blob: f93987e6880b8c0e999946e90e24d97c0c3d9e7d [file] [log] [blame]
Brian Paulde0ee312004-03-26 15:19:11 +00001# src/Makefile
2
3TOP = ..
4
5include $(TOP)/configs/current
6
7SUBDIRS = $(SRC_DIRS)
8
9
Brian Paul883f9892006-07-13 02:50:27 +000010default: message $(TOP)/$(LIB_DIR) subdirs
Brian Paul0ad65542004-08-25 14:49:41 +000011
12
13message:
14 @echo "Making sources for" $(CONFIG_NAME)
Brian Paulde0ee312004-03-26 15:19:11 +000015
16
17subdirs:
18 @for dir in $(SUBDIRS) ; do \
19 if [ -d $$dir ] ; then \
Brian16c503f2007-05-09 16:22:53 -060020 (cd $$dir && $(MAKE)) || exit 1; \
Brian Paulde0ee312004-03-26 15:19:11 +000021 fi \
22 done
23
Brian Paul0e794a12006-06-22 22:50:48 +000024install:
25 @for dir in $(SUBDIRS) ; do \
26 if [ -d $$dir ] ; then \
Brian16c503f2007-05-09 16:22:53 -060027 (cd $$dir && $(MAKE) install) || exit 1 ; \
Brian Paul0e794a12006-06-22 22:50:48 +000028 fi \
29 done
Brian Paulde0ee312004-03-26 15:19:11 +000030
Brian Paul883f9892006-07-13 02:50:27 +000031$(TOP)/$(LIB_DIR):
32 -mkdir $(TOP)/$(LIB_DIR)
Brian Paulde0ee312004-03-26 15:19:11 +000033
34
35clean:
36 @for dir in $(SUBDIRS) ; do \
37 if [ -d $$dir ] ; then \
Brian16c503f2007-05-09 16:22:53 -060038 (cd $$dir && $(MAKE) clean) ; \
Brian Paulde0ee312004-03-26 15:19:11 +000039 fi \
40 done