-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathMakefile
47 lines (39 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
TOPTARGETS := all clean
OSCILLATORS := $(wildcard *mk)
VERSION=1.6-1
$(TOPTARGETS): $(OSCILLATORS) package_prologue package_minilogue-xd package_nutekt-digital
$(OSCILLATORS):
@rm -fR .dep ./build
@PLATFORM=prologue VERSION=$(VERSION) $(MAKE) -f $@ $(MAKECMDGOALS)
@rm -fR .dep ./build
@PLATFORM=minilogue-xd VERSION=$(VERSION) $(MAKE) -f $@ $(MAKECMDGOALS)
@rm -fR .dep ./build
@PLATFORM=nutekt-digital VERSION=$(VERSION) $(MAKE) -f $@ $(MAKECMDGOALS)
.PHONY: $(TOPTARGETS) $(OSCILLATORS)
PROLOGUE_PACKAGE=eurorack_prologue
MINILOGUE_XD_PACKAGE=eurorack_minilogue-xd
NUTEKT_DIGITAL_PACKAGE=eurorack_nutekt-digital
package_prologue:
@echo Packaging to ./${PROLOGUE_PACKAGE}.zip
@rm -f ${PROLOGUE_PACKAGE}.zip
@rm -rf ${PROLOGUE_PACKAGE}
@mkdir ${PROLOGUE_PACKAGE}
@cp -a *.prlgunit ${PROLOGUE_PACKAGE}/
@cp -a credits.txt ${PROLOGUE_PACKAGE}/
@zip -rq9m ${PROLOGUE_PACKAGE}.zip ${PROLOGUE_PACKAGE}/
package_minilogue-xd:
@echo Packaging to ./${MINILOGUE_XD_PACKAGE}.zip
@rm -f ${MINILOGUE_XD_PACKAGE}.zip
@rm -rf ${MINILOGUE_XD_PACKAGE}
@mkdir ${MINILOGUE_XD_PACKAGE}
@cp -a *.mnlgxdunit ${MINILOGUE_XD_PACKAGE}/
@cp -a credits.txt ${MINILOGUE_XD_PACKAGE}/
@zip -rq9m ${MINILOGUE_XD_PACKAGE}.zip ${MINILOGUE_XD_PACKAGE}/
package_nutekt-digital:
@echo Packaging to ./${NUTEKT_DIGITAL_PACKAGE}.zip
@rm -f ${NUTEKT_DIGITAL_PACKAGE}.zip
@rm -rf ${NUTEKT_DIGITAL_PACKAGE}
@mkdir ${NUTEKT_DIGITAL_PACKAGE}
@cp -a *.ntkdigunit ${NUTEKT_DIGITAL_PACKAGE}/
@cp -a credits.txt ${NUTEKT_DIGITAL_PACKAGE}/
@zip -rq9m ${NUTEKT_DIGITAL_PACKAGE}.zip ${NUTEKT_DIGITAL_PACKAGE}/