forked from RicinApp/Ricin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 2.12 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
style:
astyle \
--style=attach \
--indent=spaces=2 \
--indent-namespaces \
--indent-switches \
--add-brackets \
src/*.vala
nodesfile:
wget -O res/nodes.json https://build.tox.chat/job/nodefile_build_linux_x86_64_release/lastSuccessfulBuild/artifact/Nodefile.json
# not needed when we get meson 0.27.0
cleandebug:
type ninja-build 2>/dev/null && ninja-build -C build clean || ninja -C build clean
type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build
G_MESSAGES_DEBUG=all GOBJECT_DEBUG=instance-count gdb -ex run ./build/Ricin
debug: ./build/
type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build
G_MESSAGES_DEBUG=all GOBJECT_DEBUG=instance-count gdb -ex run ./build/Ricin
cleanrelease:
type ninja-build 2>/dev/null && ninja-build -C build clean || ninja -C build clean
type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build
release: ./build/
type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build
# This need to be rewritted using ninja install to work on all systems.
install: ./build/
type ninja-build 2>/dev/null && ninja-build -C build clean || ninja -C build clean
type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build
sudo cp "build/Ricin" "/usr/bin/Ricin" # Binary
sudo cp "misc/ricin.desktop" "/usr/share/applications/ricin.desktop" # Desktop file
sudo cp "res/images/icons/Ricin-128x128.png" "/usr/share/icons/Ricin-128x128.png" # Icon
sudo cp "po/en_US.mo" "/usr/share/locale/en_US/LC_MESSAGES/ricin.mo" # English
sudo cp "po/fr_FR.mo" "/usr/share/locale/fr_FR/LC_MESSAGES/ricin.mo" # French
sudo cp "po/pt_PT.mo" "/usr/share/locale/pt_PT/LC_MESSAGES/ricin.mo" # Portuguese
sudo cp "po/da_DK.mo" "/usr/share/locale/da_DK/LC_MESSAGES/ricin.mo" # Danish
sudo cp "po/eo.mo" "/usr/share/locale/eo/LC_MESSAGES/ricin.mo" # Esperanto
sudo cp "po/zh_CN.mo" "/usr/share/locale/zh_CN/LC_MESSAGES/ricin.mo" # Chinese
sudo cp "po/de.mo" "/usr/share/locale/de/LC_MESSAGES/ricin.mo" # German
autogenwin:
sudo /usr/bin/meson . build-win32 --cross-file cross_win.txt
debugwin:
ninja-build -C build-win32 clean
ninja-build -C build-win32