23ecaf706dc4750f0562ec67846b9ced1abd73ca
4 MAKES
= $(wildcard */Makefile
)
5 DIRS
= $(patsubst %/Makefile
,%,$(MAKES
))
6 CLNS
= $(patsubst %,%/cln
,$(DIRS
))
7 BINS
= $(foreach a
,$(DIRS
),$(a
)/$(a
).bin
)
10 # -test -d com/tools && make -C com/tools all
13 hb
: $(filter homebus-
%,$(BINS
))
16 -test -d com
/tools
&& make
-C com
/tools
all
21 $(info $(dir $(BINS
)))
27 -test -d com
/tools
&& make
-C com
/tools
clean
28 # -test -d com/homebus-bpi && make -C homebus-bpi clean
29 find .
-name
*.d
-o
-name
*.o
-o
-name
*.a
-o
-name
*.bin
-o
-name
*.out
-o
-name
*.list
-o
-name
*.map
-o
-name
*.hex
-o
-name
*.s19
-o
-name
*.sl |xargs
rm -fv
30 -rm -rfv
*/o
/* */filelist
33 @
${MAKE} -C
$(dir $@
) clean