cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

commit 88024cb0d360ddc2544f71753b126bf1f00efec4
parent 81cad73bb149f78655f43d3cf806c15d3109ebc4
Author: Sebastian Steinhauer <s.steinhauer@yahoo.de>
Date:   Thu, 17 May 2018 10:36:42 +0200

Merge pull request #12 from nicqrocks/master

Add Manpage to the installation
Diffstat:
MMakefile | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ # see cgo.c for copyright and license details PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man CC = cc CFLAGS ?= -O2 -Wall OBJ = cgo.o @@ -11,10 +12,13 @@ default: $(OBJ) clean: rm -f $(OBJ) $(BIN) -install: +install: default @mkdir -p $(DESTDIR)$(PREFIX)/bin/ @install $(BIN) $(DESTDIR)$(PREFIX)/bin/${BIN} + @mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + @cp cgo.1 $(DESTDIR)$(MANPREFIX)/man1/cgo.1 + @chmod 644 $(DESTDIR)$(MANPREFIX)/man1/cgo.1 uninstall: @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) - + @rm -r $(DESTDIR)$(MANPREFIX)/man1/cgo.1