summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-08 11:43:58 +0100
committersin <sin@2f30.org>2014-10-08 11:47:58 +0100
commit81bf766c09d5fd0d255960825471e0962203d3fe (patch)
tree72c8646226ffd3dc79202be38df3d1dd753c8cd5 /Makefile
parent82625645905e93f740f52cd76d33989c75456765 (diff)
Add manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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