-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 1.14 KB
/
Makefile
File metadata and controls
37 lines (30 loc) · 1.14 KB
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
# Attempt to load a config.make file.
# If none is found, project defaults in config.project.make will be used.
ifneq ($(wildcard config.make),)
include config.make
endif
# make sure the the OF_ROOT location is defined
ifndef OF_ROOT
OF_ROOT=../..
endif
# call the project makefile!
include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
VERSION=$(shell git describe --tags --long --abbrev=4)
ifeq ($(PLATFORM_OS),Darwin)
macos: Release
install_name_tool -change @executable_path/libfmodex.dylib @loader_path/libfmodex.dylib bin/$(EXTNAME).pd_darwin.app/Contents/MacOS/$(EXTNAME).pd_darwin
deken: macos
rm -rf build/
mkdir build
mkdir build/$(EXTNAME)
cp bin/$(EXTNAME).pd_darwin.app/Contents/MacOS/* README.md LICENSE.txt *screenshot.png help/*.pd build/$(EXTNAME)
cd build && ~/bin/deken upload --no-source-error --version $(VERSION) $(EXTNAME)
endif
ifeq ($(PLATFORM_OS),Linux)
deken: Release
rm -rf build/
mkdir build
mkdir build/$(EXTNAME)
cp bin/* README.md LICENSE.txt *screenshot.png help/*.pd build/$(EXTNAME)
cd build && ~/bin/deken upload --no-source-error --version $(VERSION) $(EXTNAME)
endif