blob: 3700707dfb17a8bcfeb66dc3e28c3f74ecde6a08 [file] [log] [blame]
Brian Paulde0ee312004-03-26 15:19:11 +00001# progs/Makefile
2
3TOP = ..
4
5include $(TOP)/configs/current
6
Brian Paul31f7e8e2009-10-14 09:37:40 -06007SUBDIRS = $(PROGRAM_DIRS)
Brian Paulde0ee312004-03-26 15:19:11 +00008
9
Brian Paul0ad65542004-08-25 14:49:41 +000010default: message subdirs
11
12
13message:
14 @echo "Making programs for" $(CONFIG_NAME)
15
16
17subdirs:
Tom Fogal115edf22009-10-13 10:55:34 -070018 @if test -n "$(SUBDIRS)" ; then \
19 for dir in $(SUBDIRS) ; do \
20 if [ -d $$dir ] ; then \
21 (cd $$dir && $(MAKE)) || exit 1 ; \
22 fi \
23 done \
24 fi
Brian Paulde0ee312004-03-26 15:19:11 +000025
Brian Paul0e794a12006-06-22 22:50:48 +000026# Dummy install target
27install:
Brian Paulde0ee312004-03-26 15:19:11 +000028
29clean:
Tom Fogal115edf22009-10-13 10:55:34 -070030 -@if test -n "$(SUBDIRS)" ; then \
31 for dir in $(SUBDIRS) tests ; do \
32 if [ -d $$dir ] ; then \
33 (cd $$dir && $(MAKE) clean) ; \
34 fi \
35 done \
36 fi