mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more compatible "> /dev/null 2>&1".
23 lines
349 B
Makefile
23 lines
349 B
Makefile
# progs/Makefile
|
|
|
|
TOP = ..
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
SUBDIRS = $(PROGRAM_DIRS)
|
|
|
|
|
|
default: $(TOP)/configs/current
|
|
@for dir in $(SUBDIRS) ; do \
|
|
if [ -d $$dir ] ; then \
|
|
(cd $$dir ; $(MAKE)) || exit 1 ; \
|
|
fi \
|
|
done
|
|
|
|
|
|
clean:
|
|
@for dir in $(SUBDIRS) tests ; do \
|
|
if [ -d $$dir ] ; then \
|
|
(cd $$dir ; $(MAKE) clean) ; \
|
|
fi \
|
|
done
|