mkb

progress bar maker
git clone git://git.2f30.org/mkb
Log | Files | Refs

commit 55b2989e093fb91909fc072f302caee6936f1169
parent 6d2983baa6eb20deba454b1ea51d83a093e317c5
Author: z3bra <willyatmailoodotorg>
Date:   Sun, 15 Nov 2015 15:56:03 +0100

Install manpage from the makefile

Diffstat:
MMakefile | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -9,11 +9,11 @@ LDFLAGS += BIN = mkb SRC = mkb.c +MAN = mkb.1 OBJ = $(SRC:.c=.o) .POSIX: -.SUFFIXES: .1 .1.gz all: binutils @@ -27,13 +27,18 @@ binutils: $(BIN) @echo "CC $<" @$(CC) -c $< -o $@ $(CFLAGS) -install: $(BIN) +install: $(BIN) $(MAN) mkdir -p $(DESTDIR)$(PREFIX)/bin/ cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/ chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN) + mkdir -p $(DESTDIR)$(MANPREFIX)/man1/ + cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1/ + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$(MAN) + uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN); \ + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + rm -f $(DESTDIR)$(MANPREFIX)/bin/$(MAN) clean : rm -f $(OBJ) $(BIN)