From bd089dd5b18cd472c10f554a46c163e3b51a58a2 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 22 Apr 2014 12:42:59 +0100 Subject: Add sinit.8 manpage --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2