-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 726 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BUILD := $(addsuffix -build, $(wildcard *fx))
BUILD += $(addsuffix -build, $(wildcard *osc))
CLEAN := $(addsuffix -clean, $(wildcard *fx))
CLEAN += $(addsuffix -clean, $(wildcard *osc))
PROJECTDIR = $(abspath .)
PLATFORMDIR = ./logue-sdk/platform
PLATFORMS = prologue minilogue-xd nutekt-digital
all: $(BUILD)
%-build: %
@for platform in $(PLATFORMS) ; do \
$(MAKE) -f unit.mk PLATFORMDIR=$(PLATFORMDIR)/$$platform PROJECTDIR=$< clean ; \
$(MAKE) -f unit.mk PLATFORMDIR=$(PLATFORMDIR)/$$platform PLATFORM=$$platform PROJECTDIR=$< ; \
done
clean: $(CLEAN)
%-clean: %
@for platform in $(PLATFORMS) ; do \
$(MAKE) -f unit.mk PLATFORMDIR=$(PLATFORMDIR)/$$platform PROJECTDIR=$< clean-remove ; \
done
.PHONY: all clean