Fix make install failing when run multiple times

Due to the security feature preventing checking in B2 credentials to
git, the install target would get the same file twice due to pattern
subsitution.

This issue is not visible with BSD install as it ignores the issue, but
GNU install wil fail.

Fixes #46
This commit is contained in:
Erik Westrup
2022-01-16 20:59:50 +01:00
parent 8932e60e4a
commit 828ff79e7a

View File

@@ -3,7 +3,8 @@
### Macros ###
SRCS_SCRIPTS = $(filter-out %cron_mail, $(wildcard usr/local/sbin/*))
SRCS_CONF = $(patsubst %.template, %, $(wildcard etc/restic/*))
# $(sort) remove duplicates that comes from running make install >1 times.
SRCS_CONF = $(sort $(patsubst %.template, %, $(wildcard etc/restic/*)))
SRCS_SYSTEMD = $(wildcard etc/systemd/system/*)
# Just set PREFIX in environment, like