From bbfb4f3f0eed9c75695cd02e07a14e2159849952 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 16 Aug 2013 16:50:49 +0100 Subject: install manpage --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ed51774..fc49cd0 100644 --- a/Makefile +++ b/Makefile @@ -19,17 +19,25 @@ INSTALL=install INSTALL_DIR=$(INSTALL) -d INSTALL_PROGRAM=$(INSTALL) -m 755 +INSTALL_DATA=$(INSTALL) -m 644 + prefix?=/usr/local +bindir=$(prefix)/bin +mandir=$(prefix)/share/man +man1dir=$(mandir)/man1 + PROGRAMS=dgit +MAN1PAGES=dgit.1 all: install: installdirs - $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(prefix)/bin + $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir) + $(INSTALL_DATA) $(MAN1PAGES) $(DESTDIR)$(man1dir) installdirs: - $(INSTALL_DIR) $(DESTDIR)$(prefix)/bin + $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) check installcheck: -- cgit v1.2.3