forked from etotheipi/BitcoinArmory
-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathMakefile.am
executable file
·84 lines (70 loc) · 2.35 KB
/
Makefile.am
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Makefile for Bitcoin Armory - Root Makefile
SUBDIRS = cppForSwig
bin_PROGRAMS =
noinst_PROGRAMS =
EXTRA_DIST = *.py *.md LICENSE LICENSE-ATI LICENSE-MIT \
nginx_example.conf imgList.xml autogen.sh \
armoryengine/*.py ui/*.py \
img/* lang/* dpkgfiles/* \
windowsbuild/* linuxbuild/* osxbuild/*
ACLOCAL_AMFLAGS = -I build-aux/m4
copy-script:
cp cppForSwig/ArmoryDB ./ArmoryDB
cp cppForSwig/BIP150KeyManager ./BIP150KeyManager
cp cppForSwig/CppBridge ./CppBridge
# protobuf formas for python
if BUILD_CLIENT
protoc --python_out=$(srcdir)/armoryengine --proto_path=$(srcdir)/cppForSwig/protobuf $(srcdir)/cppForSwig/protobuf/BridgeProto.proto
#TODO: build c20p1305 CFFI python lib
endif
.PHONY: copy-script lrelease qrc_img_resources.py
all-local: copy-script lrelease qrc_img_resources.py
#target to clean up pre autotools installation left overs
uninstall-old:
rm -f $(DESTDIR)$(prefix)/bin/ArmoryDB
rm -f $(DESTDIR)$(prefix)/bin/BIP150KeyManager
install-exec-hook: uninstall-old
if BUILD_CLIENT
if BUILD_GUI
mkdir -p $(DESTDIR)$(prefix)/lib/armory/ui
endif
mkdir -p $(DESTDIR)$(prefix)/lib/armory/armoryengine
mkdir -p $(DESTDIR)$(prefix)/share/applications
cp *.py *.so README.md $(DESTDIR)$(prefix)/lib/armory
cp -r armoryengine/* $(DESTDIR)$(prefix)/lib/armory/armoryengine
if BUILD_GUI
mkdir -p $(DESTDIR)$(prefix)/lib/armory/lang
cp -r ui/* $(DESTDIR)$(prefix)/lib/armory/ui
cp lang/*.qm $(DESTDIR)$(prefix)/lib/armory/lang
endif
endif
mkdir -p $(DESTDIR)$(prefix)/bin
# Sometimes, uninstall-old deletes a valid ArmoryDB. Copy again to be safe.
cp ArmoryDB $(DESTDIR)$(prefix)/bin
cp BIP150KeyManager $(DESTDIR)$(prefix)/bin
# No need to install test binaries.
if BUILD_TESTS
rm -f $(DESTDIR)$(prefix)/bin/*Tests
endif
# Skip Linux-specific steps on OSX.
if ! BUILD_DARWIN
if BUILD_CLIENT
rsync -rupE --exclude="img/.DS_Store" img $(DESTDIR)$(prefix)/share/armory/
sed "s: /usr: $(prefix):g" < dpkgfiles/armory > $(DESTDIR)$(prefix)/bin/armory
chmod +x $(DESTDIR)$(prefix)/bin/armory
endif
endif
uninstall-hook: uninstall-old
rm -rf $(DESTDIR)$(prefix)/lib/armory
rm -rf $(DESTDIR)$(prefix)/bin/armory
rm -f $(DESTDIR)$(prefix)/share/applications/armory*
rm -rf $(DESTDIR)$(prefix)/share/armory
clean-local:
rm -f ArmoryDB
rm -f BIP150KeyManager
rm -f lib/*
if BUILD_CLIENT
rm -f CppBlockUtils.py
rm -f _CppBlockUtils.so
rm -f CppBlockUtils.pyc
endif