-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 1014 Bytes
/
Makefile
File metadata and controls
33 lines (29 loc) · 1014 Bytes
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
# ---------------------------------------------
# Alter Linux i3 manager
# Makefile
#
# Watasuke
# Twitter: @Watasuke102
# Email : Watasuke102@gmail.com
#
# (c) 2020 Fascode Network.
# ---------------------------------------------
PREFIX ?= /usr
SHARE_DIR ?= $(PREFIX)/share
PROGRAM = alterlinux-i3-manager
all:
cmake -GNinja .
ninja
clean:
rm CMakeCache.txt cmake_install.cmake && rm -r CMakeFiles
install:
cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
ninja
install -Dm 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
install -Dm 644 lang/$(PROGRAM)_ja.qm $(DESTDIR)$(SHARE_DIR)/$(PROGRAM)/$(PROGRAM)_ja.qm
install -Dm 644 $(PROGRAM).desktop $(DESTDIR)$(SHARE_DIR)/applications/$(PROGRAM).desktop
cp -rf data $(DESTDIR)$(SHARE_DIR)/$(PROGRAM)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
rm -f $(DESTDIR)$(SHARE_DIR)/applications/$(PROGRAM).desktop
rm -rf $(DESTDIR)$(SHARE_DIR)/$(PROGRAM)