summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-19 23:50:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-19 23:50:42 +0200
commit18933a2db9015d2acd669ac879521e02caed0bba (patch)
treefcbcbdb881201f4984bcf96499c3af0c0ef137d9 /Makefile
parent78098bab96c0228d700978492152ba3c2a872d2b (diff)
downloadpass-18933a2db9015d2acd669ac879521e02caed0bba.tar.gz
pass-18933a2db9015d2acd669ac879521e02caed0bba.tar.bz2
pass-18933a2db9015d2acd669ac879521e02caed0bba.zip
platform: Auto-detect local platform file
In fact, if we're running from the source directory, just auto-detect the platform file in the first place. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ed81e82..6cfa9e4 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,12 @@ ifneq ($(strip $(wildcard $(PLATFORMFILE))),)
install: install-common
@install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"
@mkdir -p -v "$(DESTDIR)$(BINDIR)/"
- sed 's:.*PASSWORD_STORE_PLATFORM_FILE.*:source "$(DESTDIR)$(LIBDIR)/password-store.platform.sh":' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
+ sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(DESTDIR)$(LIBDIR)/password-store.platform.sh":' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
@chmod 0755 "$(DESTDIR)$(BINDIR)/pass"
else
install: install-common
@mkdir -p -v "$(DESTDIR)$(BINDIR)/"
- sed '/PASSWORD_STORE_PLATFORM_FILE/d' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
+ sed '/PLATFORM_FUNCTION_FILE/d' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
@chmod 0755 "$(DESTDIR)$(BINDIR)/pass"
endif