forked from odevices/er-301
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.12 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
48
49
50
51
52
# How to use this makefile
#
# To create the package:
# > make
#
# Remove build outputs:
# > make clean
#
# Copy the pkg file to the packages folder
# > make install
#
#
# Remove build outputs for all profiles and architectures.
# > make dist-clean
#
# WARNING: In order to keep this makefile simple, dependencies are hard-coded
# rather than auto-generated.
# Override these defaults on the commandline:
PKGNAME ?= tutorial
PKGVERSION ?= 0.0.1
# Describe your files to this makefile:
assets = toc.lua FMOperator.lua
#######################################################
# Edits are generally not needed beyond this point.
package_file = $(PKGNAME)-$(PKGVERSION).pkg
#######################################################
# Rules
all: $(package_file)
$(package_file): $(assets)
@echo [ZIP $@]
@rm -f $@
@zip -j $@ $(assets)
list: $(package_file)
@unzip -l $(package_file)
clean:
rm -rf $(package_file)
emu-install: $(package_file)
cp $(package_file) $(HOME)/.od/rear
# This assumes an SD card is mounted to /media/$(USERNAME)/FRONT
card-install: $(package_file)
cp $(package_file) /media/$(USERNAME)/FRONT/ER-301/packages