forked from etotheipi/BitcoinArmory
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (26 loc) · 1.08 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
# All the actual Makefiles are deeper in the directory tree.
# I am just calling them, here.
DESTDIR=/usr
all :
$(MAKE) -C cppForSwig swig
clean :
$(MAKE) -C cppForSwig clean
rm -rf osxbuild/Armory.app
rm -rf osxbuild/env
install : all
mkdir -p $(DESTDIR)/share/armory/img
mkdir -p $(DESTDIR)/lib/armory/extras
mkdir -p $(DESTDIR)/lib/armory/jsonrpc
mkdir -p $(DESTDIR)/lib/armory/dialogs
cp *.py *.so README $(DESTDIR)/lib/armory/
cp img/* $(DESTDIR)/share/armory/img
cp extras/*.py $(DESTDIR)/lib/armory/extras
cp jsonrpc/*.py $(DESTDIR)/lib/armory/jsonrpc
cp dialogs/*.py $(DESTDIR)/lib/armory/dialogs
mkdir -p $(DESTDIR)/share/applications
sed "s:python /usr:python $(DESTDIR):g" < dpkgfiles/armory.desktop > $(DESTDIR)/share/applications/armory.desktop
sed "s:python /usr:python $(DESTDIR):g" < dpkgfiles/armoryoffline.desktop > $(DESTDIR)/share/applications/armoryoffline.desktop
sed "s:python /usr:python $(DESTDIR):g" < dpkgfiles/armorytestnet.desktop > $(DESTDIR)/share/applications/armorytestnet.desktop
osx :
chmod +x osxbuild/deploy.sh
cd osxbuild; ./deploy.sh