forked from teg/systemd-arch-units
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 665 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SERVICE_FILES = ${wildcard service/*}
SOCKET_FILES = ${wildcard socket/*}
TARGET_FILES = ${wildcard target/*}
PATH_FILES = ${wildcard path/*}
SCRIPTS = ${wildcard scripts/*}
TMP_FILES = ${wildcard tmpfiles/*}
SD_TMPDIR ?= usr/lib/tmpfiles.d
SD_LIBDIR ?= lib/systemd
SD_UNITDIR ?= ${SD_LIBDIR}/system
SD_SCRIPTDIR ?= ${SD_LIBDIR}/scripts
install:
install -d "${DESTDIR}/${SD_SCRIPTDIR}" "${DESTDIR}/${SD_UNITDIR}" "${DESTDIR}/${SD_TMPDIR}"
install -m644 -t "${DESTDIR}/${SD_UNITDIR}" ${SERVICE_FILES} ${SOCKET_FILES} ${TARGET_FILES} ${PATH_FILES}
install -m755 -t "${DESTDIR}/${SD_SCRIPTDIR}" ${SCRIPTS}
install -m644 -t "${DESTDIR}/${SD_TMPDIR}" ${TMP_FILES}