From e7b8fad4232b724a8b1d8214b149a0f01c9d14ab Mon Sep 17 00:00:00 2001 From: Bruno Braga Date: Sun, 19 May 2013 22:16:34 +1000 Subject: [PATCH] Fixed Issue #4 - Added man page to makefile for installation. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6af86825..de15ee80 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CFLAGS?=-Wall -Os PREFIX?=$(DESTDIR)/usr BINDIR?=$(PREFIX)/bin +MANDIR?=$(PREFIX)/share/man/man1 # Check deps. @@ -23,8 +24,12 @@ normal: debug: $(CC) -o simpleswitcher-debug simpleswitcher.c -std=c99 $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD) -install: +install: install-man install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher +install-man: + install -Dm 644 simpleswitcher.1 $(MANDIR) + gzip $(MANDIR)/simpleswitcher.1 + clean: rm -f simpleswitcher simpleswitcher-debug