respect DESTDIR as per GNU/debian/etc (#437)

pull/438/head
Josh Rabinowitz 5 years ago committed by GitHub
parent ec4232faec
commit 4bcf6c054a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,7 @@
- Add -v 'verbose' option to 'tell', showing gpg output (#320)
- Change 'init' to never ignore .secret files (#362)
- 'add' appends filepaths to .gitignore by default (#225)
- Automate the GitHub release (#411)
### Bugfixes
@ -26,7 +27,7 @@
- Fix re: SECRETS_DIR in 'init' and SECRETS_EXTENSION in test_reveal.bats (#364)
- Use SECRETS_GPG_COMMAND env var in gpg version check (#389)
- Add header to git-secret.7 man page, for debian and doc improvement (#386)
- Automate the GitHub release (#411)
- Respect DESTDIR when installing as per GNU/debian/etc recommendations (#424)
## Misc

@ -1,5 +1,6 @@
SHELL:=/usr/bin/env bash
PREFIX?="/usr"
DESTDIR?=
#
# Building:
@ -22,12 +23,12 @@ build: git-secret
.PHONY: install
install:
chmod +x "./utils/install.sh"; sync; \
"./utils/install.sh" "${PREFIX}"
"./utils/install.sh" "${DESTDIR}${PREFIX}"
.PHONY: uninstall
uninstall:
chmod +x "./utils/uninstall.sh"; sync; \
"./utils/uninstall.sh" "${PREFIX}"
"./utils/uninstall.sh" "${DESTDIR}${PREFIX}"
#
# Testing:

Loading…
Cancel
Save