-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
33 lines (25 loc) · 820 Bytes
/
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
SLUG = TheXOR
VERSION = 0.5.6
# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
CFLAGS +=
CXXFLAGS +=
# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
LDFLAGS +=
# Add .cpp and .c files to the build
SOURCES = $(wildcard src/*.cpp)
# Must include the VCV plugin Makefile framework
include ../../plugin.mk
Debug: all
# Convenience target for packaging files into a ZIP file
.PHONY: dist
dist: all
mkdir -p dist/$(SLUG)
mkdir -p dist/$(SLUG)/res
cp LICENSE* dist/$(SLUG)/
cp $(TARGET) dist/$(SLUG)/
cp -R res/*.svg dist/$(SLUG)/res/
cp -R res/Segment7Standard.ttf dist/$(SLUG)/res/
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)
sha256sum dist/$(SLUG)-$(VERSION)-$(ARCH).zip --tag