2024-01-31 05:16:32 +00:00
|
|
|
targets := clocks selectors accelerators ram.drv setup util textcolors
|
2019-10-04 04:19:52 +00:00
|
|
|
|
2021-07-23 15:56:14 +00:00
|
|
|
.PHONY: all $(targets) package
|
2019-10-04 04:19:52 +00:00
|
|
|
|
|
|
|
all: $(targets)
|
|
|
|
|
2023-05-02 02:47:10 +00:00
|
|
|
export LOG_SUCCESS=1
|
|
|
|
export LOG_FAILURE=1
|
|
|
|
|
2019-10-04 04:19:52 +00:00
|
|
|
# Build all targets
|
|
|
|
$(targets):
|
|
|
|
@tput setaf 3 && echo "Building: $@" && tput sgr0
|
|
|
|
@$(MAKE) -C $@ \
|
|
|
|
&& (tput setaf 2 && echo "make $@ good" && tput sgr0) \
|
|
|
|
|| (tput blink && tput setaf 1 && echo "MAKE $@ BAD" && tput sgr0 && false)
|
|
|
|
|
|
|
|
# Clean all temporary/target files
|
|
|
|
clean:
|
|
|
|
@for dir in $(targets); do \
|
|
|
|
tput setaf 2 && echo "cleaning $$dir" && tput sgr0; \
|
|
|
|
$(MAKE) -C $$dir clean; \
|
|
|
|
done
|
2021-07-23 15:56:14 +00:00
|
|
|
|
|
|
|
package:
|
|
|
|
./package.sh
|