2021-03-07 16:05:31 -08:00
|
|
|
targets := ns.clock cricket dclock selectors ram.drv quit
|
2019-10-03 21:19:52 -07:00
|
|
|
|
2021-07-23 08:56:14 -07:00
|
|
|
.PHONY: all $(targets) package
|
2019-10-03 21:19:52 -07:00
|
|
|
|
|
|
|
all: $(targets)
|
|
|
|
|
|
|
|
# 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 08:56:14 -07:00
|
|
|
|
|
|
|
package:
|
|
|
|
./package.sh
|