blob: 4aadbe7dab7f99b7e8b4cc7d7a0bfab25116a790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
COMMANDS ?= $(notdir $(shell find commands -mindepth 1 -maxdepth 1 -type d))
# all rules executable on meta-command and commands
RULES := setup upload upload_docs clean develop
MASSRULES := $(foreach rule,$(RULES),$(rule)-all)
.PHONY: $(MASSRULES)
$(MASSRULES): %-all:
# executes rule for metacommand and for all commands found
for cmd in $(COMMANDS); do \
make -C commands/$$cmd $*; \
done
|