Skip to content

Commit

Permalink
Use ${DESTDIR} for config
Browse files Browse the repository at this point in the history
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 <itxaka@kairos.io>
  • Loading branch information
Itxaka authored and ansasaki committed Oct 30, 2024
1 parent 2ebb958 commit a3bfd5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ clean::

.PHONY: install
install: all
mkdir -p /etc/keylime/
mkdir -p /etc/keylime/agent.conf.d
cp ${CONFFILE} /etc/keylime/agent.conf
mkdir -p ${DESTDIR}/etc/keylime/
mkdir -p ${DESTDIR}/etc/keylime/agent.conf.d
cp ${CONFFILE} ${DESTDIR}/etc/keylime/agent.conf
for f in $(programs); do \
install -D -t ${DESTDIR}/usr/bin "$$f"; \
done
Expand Down

0 comments on commit a3bfd5a

Please sign in to comment.