summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fbfc67e4039b85bf5c0bf8f25e2065b663752fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include Makefile.inc

COMMANDS ?= $(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 $$cmd $*; \
	done