mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
mesa: added SUBDIRS support in dri/Makefile.template
This commit is contained in:
parent
f0503726bf
commit
d9fd207133
1 changed files with 13 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ SHARED_INCLUDES = \
|
|||
|
||||
##### TARGETS #####
|
||||
|
||||
default: symlinks depend $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)
|
||||
default: symlinks subdirs depend $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)
|
||||
|
||||
|
||||
$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
|
||||
|
|
@ -72,6 +72,18 @@ $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
|
|||
$(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)
|
||||
|
||||
|
||||
# If the Makefile defined SUBDIRS, run make in each
|
||||
.PHONY: subdirs
|
||||
subdirs:
|
||||
@if test -n "$(SUBDIRS)" ; then \
|
||||
for dir in $(SUBDIRS) ; do \
|
||||
if [ -d $$dir ] ; then \
|
||||
(cd $$dir && $(MAKE)) || exit 1; \
|
||||
fi \
|
||||
done \
|
||||
fi
|
||||
|
||||
|
||||
depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
|
||||
@ echo "running $(MKDEP)"
|
||||
@ rm -f depend
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue