forked from rime/librime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 1.03 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
RIME_ROOT = $(CURDIR)
sharedir = $(DESTDIR)/usr/share
bindir = $(DESTDIR)/usr/bin
.PHONY: all install uninstall thirdparty clean librime-static librime debug
all: librime
@echo ':)'
install: install-librime
@echo ':)'
uninstall: uninstall-librime
@echo ':)'
thirdparty:
make -f Makefile.thirdparty
thirdparty/%:
make -f Makefile.thirdparty $(@:thirdparty/%=%)
clean:
rm -Rf build build-static debug-build
librime-static:
mkdir -p build-static
(cd build-static; cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_SHARED_LIBS=OFF ..)
make -C build-static
librime:
mkdir -p build
(cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..)
make -C build
install-librime:
make -C build install
uninstall-librime:
make -C build uninstall
debug:
mkdir -p debug-build
(cd debug-build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_TEST=ON ..)
make -C debug-build
install-debug:
make -C debug-build install
uninstall-debug:
make -C debug-build uninstall