tpm

Tiny password manager

git clone https://git.8pit.net/tpm.git

 1# Copyright (C) 2013-2016 Sören Tempel
 2#
 3# This program is free software: you can redistribute it and/or modify
 4# it under the terms of the GNU General Public License as published by
 5# the Free Software Foundation, either version 3 of the License, or
 6# (at your option) any later version.
 7#
 8# This program is distributed in the hope that it will be useful,
 9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16VERSION = 1.3.3
17PREFIX ?= /usr/local
18BINDIR ?= $(PREFIX)/bin
19MANDIR ?= $(PREFIX)/share/man
20
21all: tpm.1
22tpm.1: README.pod
23	pod2man --section=1 --center="tpm Manual" --name="TPM" \
24		--release="tpm $(VERSION)" $< $@
25
26install: tpm.1
27	install -Dm755 tpm "$(DESTDIR)$(BINDIR)/tpm"
28	install -Dm644 tpm.1 "$(DESTDIR)$(MANDIR)/man1/tpm.1"
29
30uninstall:
31	$(RM) "$(DESTDIR)$(BINDIR)/tpm" \
32		"$(DESTDIR)$(MANDIR)/man1/tpm.1"
33
34clean:
35	$(RM) tpm.1
36
37.PHONY: all install uninstall clean