-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 808 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
LIB_ORIGIN="${PWD}/build/usr/lib"
install_tools:
sudo apt install libgtk-3-dev
sudo apt install patchelf
sudo apt install libopenblas-dev
#sudo apt install doxygen
#sudo apt install graphviz
#sudo npm install moxygen -g
release:
cd ./src && $(MAKE) main
cp ./obj/libceural.so ./build/usr/lib/
cp ./obj/liblag.so ./build/usr/lib/
cp ./src/main ./build/usr/bin/crecog
patchelf --set-rpath "${LIB_ORIGIN}" ./build/usr/bin/crecog
patchelf --set-rpath "${LIB_ORIGIN}" ./build/usr/lib/libceural.so
linuxdeploy --appdir ./build --executable ./build/usr/bin/crecog --output appimage
clean:
cd ./lib/ceural && $(MAKE) clean
cd ./lib/lag && $(MAKE) clean
cd ./src && $(MAKE) clean
rm -f ./build/usr/lib/*
rm -f ./build/usr/bin/*
rm -f ./build/AppRun
rm -f C_digit_recognition-*.AppImage