~whynothugo/systemd-lock-handler

ref: b1b8e56d09452a5bd39061cafbcfaa698d56eb9f systemd-lock-handler/Makefile -rw-r--r-- 573 bytes
b1b8e56d — Hugo Osvaldo Barrera Tidy up makefile 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DESTDIR?=/
PREFIX=/usr

systemd-lock-handler:
	go build -ldflags '-s'

build: systemd-lock-handler

install: build
	@install -Dm755 systemd-lock-handler ${DESTDIR}${PREFIX}/lib/systemd-lock-handler
	@install -Dm644 systemd-lock-handler.service ${DESTDIR}${PREFIX}/lib/systemd/user/systemd-lock-handler.service
	@install -Dm644 lock.target ${DESTDIR}${PREFIX}/lib/systemd/user/lock.target
	@install -Dm644 unlock.target ${DESTDIR}${PREFIX}/lib/systemd/user/unlock.target
	@install -Dm644 sleep.target ${DESTDIR}${PREFIX}/lib/systemd/user/sleep.target

.PHONY: build install