grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / mesa / src / Makefile
blob4f65da0e3b73acf2f3b10ff82633597d843df252
1 # src/Makefile
3 TOP = ..
5 include $(TOP)/configs/current
7 SUBDIRS = $(SRC_DIRS)
10 default: message $(TOP)/$(LIB_DIR) subdirs
13 message:
14 @echo "Making sources for" $(CONFIG_NAME)
17 subdirs:
18 @for dir in $(SUBDIRS) ; do \
19 if [ -d $$dir ] ; then \
20 (cd $$dir && $(MAKE)) || exit 1; \
21 fi \
22 done
24 install: $(TOP)/$(LIB_DIR)
25 @for dir in $(SUBDIRS) ; do \
26 if [ -d $$dir ] ; then \
27 (cd $$dir && $(MAKE) install) || exit 1 ; \
28 fi \
29 done
31 $(TOP)/$(LIB_DIR):
32 -@test -d $(TOP)/$(LIB_DIR) || mkdir -p $(TOP)/$(LIB_DIR)
35 clean:
36 -@for dir in $(SUBDIRS) ; do \
37 if [ -d $$dir ] ; then \
38 (cd $$dir && $(MAKE) clean) ; \
39 fi \
40 done