~ubuntu-branches/debian/jessie/password-store/jessie

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-04-14 16:40:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140414164029-lfkwiep2sltmsaic
Tags: 1.5-1
* New upstream release (closes: #744723).
  - Fix typos in "pass generate" documentation (closes: #739949).
* Go back to recommending xclip; pass now supports asking it to copy to
  the PRIMARY selection using PASSWORD_STORE_X_SELECTION=primary.
* Use dh_python2 to stop python-support generating
  /usr/share/python-support/pass.private.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
BINDIR ?= $(PREFIX)/bin
4
4
LIBDIR ?= $(PREFIX)/lib
5
5
MANDIR ?= $(PREFIX)/share/man
6
 
SYSCONFDIR ?= /etc
7
6
 
8
7
PLATFORMFILE := src/platform/$(shell uname | tr '[:upper:]' '[:lower:]').sh
9
8
 
10
 
.PHONY: install uninstall install-platform
 
9
.PHONY: install uninstall install-pass
11
10
 
12
11
all:
13
12
        @echo "Password store is a shell script, so there is nothing to do. Try \"make install\" instead."
14
13
 
15
 
install:
16
 
        @mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(LIBDIR)" "$(DESTDIR)$(MANDIR)/man1" "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d" "$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions"
 
14
install-pass:
 
15
        @mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(LIBDIR)" "$(DESTDIR)$(MANDIR)/man1" "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/" "$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions"
17
16
        @install -m 0755 -v src/password-store.sh "$(DESTDIR)$(BINDIR)/pass"
18
17
        @install -m 0644 -v man/pass.1 "$(DESTDIR)$(MANDIR)/man1/pass.1"
19
 
        @install -m 0644 -v contrib/pass.bash-completion "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store"
20
 
        @install -m 0644 -v contrib/pass.zsh-completion "$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_pass"
 
18
        @install -m 0644 -v src/completion/pass.bash-completion "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/pass"
 
19
        @install -m 0644 -v src/completion/pass.zsh-completion "$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_pass"
21
20
 
22
21
#       Uncomment to install the fish completion file.
23
 
#       @install -m 0644 -v contrib/pass.fish-completion "$(DESTDIR)$(PREFIX)/share/fish/completions/pass.fish"
24
 
 
25
 
        @$(MAKE) -s install-platform
 
22
#       @install -m 0644 -v src/completion/pass.fish-completion "$(DESTDIR)$(PREFIX)/share/fish/completions/pass.fish"
26
23
 
27
24
ifneq ($(strip $(wildcard $(PLATFORMFILE))),)
28
 
install-platform:
 
25
install: install-pass
29
26
        @install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"
30
27
#       The -i "" doesn't work on GNU, where the extra argument isn't needed. Fortuantely, platform file is for non-GNU only.
31
28
        sed -i "" 's:.*platform-defined-functions.*:source $(DESTDIR)$(LIBDIR)/password-store.platform.sh:' "$(DESTDIR)$(BINDIR)/pass"
32
29
else
33
 
install-platform:
 
30
install: install-pass
34
31
endif
35
32
 
36
33
uninstall:
37
 
        @rm -vf "$(DESTDIR)$(BINDIR)/pass" "$(DESTDIR)$(MANDIR)/man1/pass.1" "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"
 
34
        @rm -vf "$(DESTDIR)$(BINDIR)/pass" "$(DESTDIR)$(MANDIR)/man1/pass.1" "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/password-store" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"