Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
[mesa.git] / progs / Makefile
1 # progs/Makefile
2
3 TOP = ..
4
5 include $(TOP)/configs/current
6
7 SUBDIRS = "$(strip "$(PROGRAM_DIRS)")"
8
9
10 default: message subdirs
11
12
13 message:
14 @echo "Making programs for" $(CONFIG_NAME)
15
16
17 subdirs:
18 @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
25
26 # Dummy install target
27 install:
28
29 clean:
30 -@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