Skip to content

Commit

Permalink
Fix Make 3.8 compatibility issues in examples Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
meeq authored and rasky committed Sep 26, 2023
1 parent 97d0c41 commit e1db7bb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
EXAMPLES = audioplayer cpptest ctest dfsdemo eepromfstest mixertest mptest mputest rspqdemo spritemap test timers vrutest vtest ucodetest

# Populated by evaluating the EXAMPLE_template macro for each example
all:
clean:
all: $(EXAMPLES)
clean: $(foreach example,$(EXAMPLES),$(example)-clean)
.PHONY: all clean

define EXAMPLE_template =
define EXAMPLE_template
$(1):
$$(MAKE) -C $(1)
$(1)-clean:
$$(MAKE) -C $(1) clean
all: $(1)
clean: $(1)-clean
.PHONY: $(1) $(1)-clean
endef

Expand Down

0 comments on commit e1db7bb

Please sign in to comment.