OXYGENHUB
◆ main openmsx / build / entry-seq.mk
614 B · Makefile · last changed chore(): initial commit 1 month ago source blame history raw
1
# Declares a dependency chain of sequence-<N> on sequence<N-1>, sequence-<N-1>
2
# on sequence<N-2> etc, where N is the number of words in ACTION_COUNTER.
3
4
.PHONY: sequence-$(words $(ACTION_COUNTER))
5
ifeq ($(words $(ACTION_COUNTER)),0)
6
sequence-0:
7
else
8
NEXT_ACTION_COUNTER:=$(wordlist 2,999999,$(ACTION_COUNTER))
9
10
sequence-$(words $(ACTION_COUNTER)): sequence-$(words $(NEXT_ACTION_COUNTER))
11
	@echo Action: $(word $(@:sequence-%=%),$(MAKECMDGOALS))
12
	@$(MAKE) --no-print-directory -f build/main.mk \
13
		$(word $(@:sequence-%=%),$(MAKECMDGOALS))
14
15
ACTION_COUNTER:=$(NEXT_ACTION_COUNTER)
16
include build/entry-seq.mk
17
endif