sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit bb4a01e837195713d6ce2f4e66826cfc7bfa3713
parent 0f542cab58a9742675ae5442de3a38af8780d21a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 Sep 2023 06:47:37 +0200

build: Remove LIBUTIL and LIBUTF

They were just hidding the actual names of te libraries and as
they were added to OBJ they were listed twice in the clean
command.

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

diff --git a/Makefile b/Makefile @@ -21,7 +21,6 @@ HDR =\ utf.h\ util.h -LIBUTF = libutf.a LIBUTFOBJ =\ libutf/fgetrune.o\ libutf/fputrune.o\ @@ -43,7 +42,6 @@ LIBUTFOBJ =\ libutf/utf.o\ libutf/utftorunestr.o -LIBUTIL = libutil.a LIBUTILOBJ =\ libutil/concat.o\ libutil/cp.o\ @@ -83,7 +81,7 @@ LIBUTILOBJ =\ libutil/unescape.o\ libutil/writeall.o -LIB = $(LIBUTF) $(LIBUTIL) +LIB = libutf.a libutil.a BIN =\ basename\ @@ -200,11 +198,11 @@ $(OBJ): $(HDR) config.mk .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< -$(LIBUTF): $(LIBUTFOBJ) +libutf.a: $(LIBUTFOBJ) $(AR) rc $@ $? $(RANLIB) $@ -$(LIBUTIL): $(LIBUTILOBJ) +libutil.a: $(LIBUTILOBJ) $(AR) rc $@ $? $(RANLIB) $@