aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-04-22 12:42:59 +0100
committersin <sin@2f30.org>2014-04-23 10:52:14 +0100
commitbd089dd5b18cd472c10f554a46c163e3b51a58a2 (patch)
tree1c3e946988ece34a12d1679273475bbea4269895 /Makefile
parent76309c5e61defc04b88254111a764e849fa8ee71 (diff)
Add sinit.8 manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4d8d11c..1b7867f 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ config.h:
dist: clean
@echo creating dist tarball
@mkdir -p sinit-$(VERSION)
- @cp LICENSE Makefile README config.def.h config.mk sinit.c \
+ @cp LICENSE Makefile README config.def.h config.mk sinit.8 sinit.c \
sinit-$(VERSION)
@tar -cf sinit-$(VERSION).tar sinit-$(VERSION)
@gzip sinit-$(VERSION).tar
@@ -45,11 +45,17 @@ 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)/man8
+ @mkdir -p $(DESTDIR)$(MANPREFIX)/man8
+ @sed "s/VERSION/$(VERSION)/g" < sinit.8 > $(DESTDIR)$(MANPREFIX)/man8/sinit.8
+ @chmod 644 $(DESTDIR)$(MANPREFIX)/man8/sinit.8
uninstall:
@echo removing executable from $(DESTDIR)$(PREFIX)/bin
@cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN)
+ @echo removing manual page from $(DESTDIR)$(MANPREFIX)/man8
+ @rm -f $(DESTDIR)$(MANPREFIX)/man8/sinit.8
clean:
@echo cleaning