From 81bf766c09d5fd0d255960825471e0962203d3fe Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 8 Oct 2014 11:43:58 +0100 Subject: Add manpage --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 05ac33f..a8b1656 100644 --- a/Makefile +++ b/Makefile @@ -44,11 +44,16 @@ install: all @echo installing executable to $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin @cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin - @cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN) + @chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN) + @echo installing manual page to $(DESTDIR)$(MANPREFIX)/man1 + @mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + @cp -f ratox.1 $(DESTDIR)$(MANPREFIX)/man1 uninstall: @echo removing executable from $(DESTDIR)$(PREFIX)/bin - @cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) + @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + @echo removing manual page from $(DESTDIR)$(MANPREFIX)/man1 + @rm $(DESTDIR)$(MANPREFIX)/man1/ratox.1 clean: @echo cleaning -- cgit v1.2.3