commit 9af8ddb91cf5ec84b25e08189edf91baf5d154b5 parent 139f0f3542125dea332b2b38f65d57f32255affc Author: nmeum <git-nmeum@8pit.net> Date: Sat, 31 May 2014 12:49:05 +0200 Minor Makefile cleanup Diffstat:
M | Makefile | | | 15 | ++++++--------- |
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,24 +1,21 @@ -VERSION = 1.2 -MANPAGES = tpm.1 +VERSION = 1.2 PREFIX ?= /usr/local MANPREFIX ?= $(PREFIX)/share/man -all: doc - -doc: $(MANPAGES) tpm.1: README.pod - pod2man --section=1 --center="tpm Manual" --name="tpm" --release="tpm $(VERSION)" $< $@ + pod2man --section=1 --center="tpm Manual" --name="tpm" \ + --release="tpm $(VERSION)" $< $@ -install: all +install: tpm.1 install -D -m755 tpm $(DESTDIR)$(PREFIX)/bin/tpm install -D -m644 tpm.1 $(DESTDIR)$(MANPREFIX)/man1/tpm.1 uninstall: $(RM) $(DESTDIR)$(PREFIX)/bin/tpm \ - $(DESTDIR)$(MANPREFIX)/man1/tpm.1 \ + $(DESTDIR)$(MANPREFIX)/man1/tpm.1 clean: $(RM) $(MANPAGES) -.PHONY: clean doc install uninstall +.PHONY: install uninstall clean