-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 821 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
VERSION=2.0.1
DATE=2018-11-17
DESTDIR=/
INSTALL=install
SED=sed
install: install-bin install-doc
install-bin:
$(INSTALL) -o root -g root -d -m 755 $(DESTDIR)/etc/pickle.d/keys
$(INSTALL) -o root -g root -d -m 755 $(DESTDIR)/sbin
$(INSTALL) -o root -g root -d -m 755 $(DESTDIR)/var/log/pickle
$(INSTALL) -o root -g root -m 755 src/pickle $(DESTDIR)/sbin/pickle
$(SED) -i $(DESTDIR)/sbin/pickle -e 's/%VERSION%/$(VERSION)/g'
$(SED) -i $(DESTDIR)/sbin/pickle -e "s/%DATE%/$(DATE)/g"
$(INSTALL) -o root -g root -m 644 src/etc/pickle.conf $(DESTDIR)/etc/
$(INSTALL) -o root -g root -m 644 src/etc/pickle.d/keys/* $(DESTDIR)/etc/pickle.d/keys/
install-doc:
$(INSTALL) -o root -g root -d -m 755 $(DESTDIR)/usr/share/man/man8
$(INSTALL) -o root -g root -m 644 src/man/man8/pickle.8 $(DESTDIR)/usr/share/man/man8/