forked from sonic2kk/steamtinkerlaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 867 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
ifeq ($(PREFIX),)
PREFIX := /usr
endif
.PHONY: build install
build:
install:
sed "s:^PREFIX=\"/usr\":PREFIX=\"$(PREFIX)\":" -i steamtinkerlaunch
install -Dm755 steamtinkerlaunch -t "$(PREFIX)/bin"
install -d "$(PREFIX)/share/steamtinkerlaunch"
cp -r collections eval guicfgs lang misc "$(PREFIX)/share/steamtinkerlaunch"
install -Dm644 README.md -t "$(PREFIX)/share/doc/steamtinkerlaunch"
install -Dm644 "misc/steamtinkerlaunch.desktop" -t "$(PREFIX)/share/applications"
install -Dm644 "misc/steamtinkerlaunch.svg" -t "$(PREFIX)/share/icons/hicolor/scalable/apps"
uninstall:
rm -f "${PREFIX}/share/icons/hicolor/scalable/apps/steamtinkerlaunch.svg"
rm -f "${PREFIX}/share/applications/steamtinkerlaunch.desktop"
rm -rf "${PREFIX}/share/doc/steamtinkerlaunch"
rm -rf "${PREFIX}/share/steamtinkerlaunch"
rm -f "${PREFIX}/bin/steamtinkerlaunch"