Skip to content

Commit a3bfd5a

Browse files
Itxakaansasaki
authored andcommitted
Use ${DESTDIR} for config
Prepends ${DESTDIR} for config dir creation and config file copying, so its in line with the other artifacts. Makes no sense to be able to install to dir X but config files being created in the system /etc/ dir Signed-off-by: Itxaka <[email protected]>
1 parent 2ebb958 commit a3bfd5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GNUmakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ clean::
3131

3232
.PHONY: install
3333
install: all
34-
mkdir -p /etc/keylime/
35-
mkdir -p /etc/keylime/agent.conf.d
36-
cp ${CONFFILE} /etc/keylime/agent.conf
34+
mkdir -p ${DESTDIR}/etc/keylime/
35+
mkdir -p ${DESTDIR}/etc/keylime/agent.conf.d
36+
cp ${CONFFILE} ${DESTDIR}/etc/keylime/agent.conf
3737
for f in $(programs); do \
3838
install -D -t ${DESTDIR}/usr/bin "$$f"; \
3939
done

0 commit comments

Comments
 (0)