-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
25 lines (19 loc) · 1.09 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
pkgname=ankama-launcher-container
PREFIX ?= /usr/local
.PHONY: all install install-rootless uninstall
all:
install:
install -Dm 755 "src/script/${pkgname}.sh" "${DESTDIR}${PREFIX}/bin/${pkgname}"
install -Dm 644 "res/desktop/${pkgname}.desktop" "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
install -Dm 644 "res/icon/${pkgname}.svg" "${DESTDIR}/usr/share/icons/${pkgname}/${pkgname}.svg"
install -Dm 644 README.md "${DESTDIR}${PREFIX}/share/doc/${pkgname}/README.md"
install-rootless:
install -Dm 755 "src/script/${pkgname}_rootless.sh" "${DESTDIR}${PREFIX}/bin/${pkgname}"
install -Dm 644 "res/desktop/${pkgname}_rootless.desktop" "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
install -Dm 644 "res/icon/${pkgname}.svg" "${DESTDIR}/usr/share/icons/${pkgname}/${pkgname}.svg"
install -Dm 644 README.md "${DESTDIR}${PREFIX}/share/doc/${pkgname}/README.md"
uninstall:
rm -f "${DESTDIR}${PREFIX}/bin/${pkgname}"
rm -rf "${DESTDIR}/usr/share/icons/${pkgname}/"
rm -f "${DESTDIR}${PREFIX}/share/applications/${pkgname}.desktop"
rm -rf "${DESTDIR}${PREFIX}/share/doc/${pkgname}/"