[hackers] [sbase] Use $(RANLIB) in Makefile || sin

From: <git_AT_suckless.org>
Date: Mon, 17 Nov 2014 13:24:06 +0100

commit 0d0624b85555cac210e3fb17ddc7ae6097e6e45d
Author: sin <sin_AT_2f30.org>
Date: Mon Nov 17 12:22:53 2014 +0000

    Use $(RANLIB) in Makefile

diff --git a/Makefile b/Makefile
index b0202ef..bf23e69 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -143,7 +143,7 @@ $(OBJ): $(HDR) config.mk
 
 $(LIB): $(LIBOBJ)
         $(AR) -r -c $_AT_ $?
- ranlib $_AT_
+ $(RANLIB) $_AT_
 
 install: all
         mkdir -p $(DESTDIR)$(PREFIX)/bin
diff --git a/config.mk b/config.mk
index a915eb3..615bbdb 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -5,9 +5,10 @@ VERSION = 0.0
 PREFIX = /usr/local
 MANPREFIX = $(PREFIX)/share/man
 
-#CC = gcc
 #CC = musl-gcc
 LD = $(CC)
+RANLIB = ranlib
+
 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
 CFLAGS = -std=c99 -Wall -pedantic
 LDFLAGS = -s
Received on Mon Nov 17 2014 - 13:24:06 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2014 - 13:36:09 CET