X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2FMakefile;h=f93987e6880b8c0e999946e90e24d97c0c3d9e7d;hb=863ab98ac758355fa80f70f84bbd69c066713554;hp=8e9b8b966848d88aa26704befbf586f7dca51dbf;hpb=e3b0dde49c8f14d7e5de440e9e914612868078f5;p=mesa.git diff --git a/src/Makefile b/src/Makefile index 8e9b8b96684..f93987e6880 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,24 +7,34 @@ include $(TOP)/configs/current SUBDIRS = $(SRC_DIRS) -default: $(LIB_DIR) subdirs +default: message $(TOP)/$(LIB_DIR) subdirs + + +message: + @echo "Making sources for" $(CONFIG_NAME) subdirs: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; make) || exit 1 ; \ + (cd $$dir && $(MAKE)) || exit 1; \ fi \ done +install: + @for dir in $(SUBDIRS) ; do \ + if [ -d $$dir ] ; then \ + (cd $$dir && $(MAKE) install) || exit 1 ; \ + fi \ + done -$(LIB_DIR): - -mkdir $(LIB_DIR) +$(TOP)/$(LIB_DIR): + -mkdir $(TOP)/$(LIB_DIR) clean: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; make clean) ; \ + (cd $$dir && $(MAKE) clean) ; \ fi \ done