-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (36 loc) · 1.42 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
53
54
APPNAME=OmbudsCore
APP=$(APPNAME).app
BINPATH=build/$(APP)/Contents/MacOS
RESPATH=build/$(APP)/Contents/Resources
OMBCOREPATH=$(GOPATH)/src/github.com/soapboxsys/OmbudsCore
pkg:
cp -a build/Electron.app build/$(APP)
$(PKG): pkg
echo $(PKG)
external: $(PKG)
cp $(GOPATH)/bin/ombfullnode $(BINPATH)
cp $(GOPATH)/bin/ombwallet $(BINPATH)
# bring in the ombappserv (which was compiled outside of the project dir)
cp $(GOPATH)/bin/ombappserv $(BINPATH)
internal: $(PKG)
cp src/launcher.py $(BINPATH)/launcher.py
# move frontend files into the resource dir.
cp -r $(OMBCOREPATH)/src/frontend $(RESPATH)
# move the atom app into place
mkdir -p $(RESPATH)/app
cp $(OMBCOREPATH)/src/atom-app/main.js $(RESPATH)/app
# move elements into app
cp -f build/OSX_Extras/Info.plist build/$(APP)/Contents
cp -f build/OSX_Extras/res/* $(RESPATH)
clean:
rm -rf build/$(APP)
compile: $(PKG)
go build -a -o $(BINPATH)/ombfullnode github.com/soapboxsys/ombfullnode
go build -a -o $(BINPATH)/ombwallet github.com/soapboxsys/ombwallet
go build -a -o $(BINPATH)/ombappserv github.com/soapboxsys/OmbudsCore/src/ombappserv
install: $(PKG)
go get -u -v -o $(BINPATH)/ombfullnode github.com/soapboxsys/ombfullnode
go get -u -v -o $(BINPATH)/ombwallet github.com/soapboxsys/ombwallet
go get -u -v -o $(BINPATH)/ombappserv github.com/soapboxsys/OmbudsCore/src/ombappserv
all: clean pkg compile internal
.PHONY: pkg external internal clean all