projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r300: Added Copyright lines to the vertex program code.
[mesa.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index 8e9b8b966848d88aa26704befbf586f7dca51dbf..f93987e6880b8c0e999946e90e24d97c0c3d9e7d 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-7,24
+7,34
@@
include $(TOP)/configs/current
SUBDIRS = $(SRC_DIRS)
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 \
subdirs:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir
; make) || exit 1
; \
+ (cd $$dir
&& $(MAKE)) || exit 1
; \
fi \
done
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 \
clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir
; make
clean) ; \
+ (cd $$dir
&& $(MAKE)
clean) ; \
fi \
done
fi \
done