diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -20,13 +20,12 @@ # DESTDIR = -ETCDIR = /etc BINDIR = /usr/bin MANDIR = /usr/share/man -VERSION = 0.6.1 +VERSION = 0.7 -all: man.commons passwort-tresor passwort-tresor.1 +all: man.commons grep-passwort grep-passwort.1 neues-passwort neues-passwort.1 %: %.in sed " \ @@ -35,20 +34,18 @@ all: man.commons passwort-tresor passwort-tresor.1 s@#ETCDIR#@$(ETCDIR)@; \ s@#HELPTEXT#\(\s\+\)#@ --help \1display this help and exit\n --version\1display version and exit@; \ " $< > $@ - [ "$@" = "passwort-tresor" ] && chmod +x "$@" || true + [ "$@" != grep-passwort ] && [ "$@" != neues-passwort ] || chmod +x "$@" %.1: % man.commons grep -v "^$<(" man.commons | sed '/^\[SEE ALSO]$$/{n;:a;N;/\[/b;s/\n/, /;ta;}' > "$<.common" && \ help2man \ - -n 'Wrapper for gpg to store passwords (and other text)' \ -o "$@" -N --include $<.common --no-discard-stderr "./$<" .PHONY: install dist clean install: all - install -D -m0755 passwort-tresor $(DESTDIR)$(BINDIR)/passwort-tresor - install -D -m0644 passwort-tresor.1 $(DESTDIR)$(MANDIR)/man1/passwort-tresor.1 - install -D -m0644 passwort-tresor.konf $(DESTDIR)$(ETCDIR)/passwort-tresor.konf + install -D -m0755 -t $(DESTDIR)$(BINDIR) grep-passwort neues-passwort + install -D -m0644 -t $(DESTDIR)$(MANDIR)/man1/ grep-passwort.1 neues-passwort.1 clean: ls -A | \ |