[hackers] [libgrapheme] Explicitly clear suffix list and fix a small oversight || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Wed, 5 Oct 2022 22:58:50 +0200 (CEST)

commit 6a70e181676e97dfe8a4b9b369ef15d286caf772
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Wed Oct 5 22:57:33 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Wed Oct 5 22:57:33 2022 +0200

    Explicitly clear suffix list and fix a small oversight
    
    The suffix list contains some rules defined by the standard. This
    masked that gen/util.o was never covered by the rules c->o, which
    has been fixed.
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/Makefile b/Makefile
index 1f9edc7..4a474cc 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -1,6 +1,7 @@
 # See LICENSE file for copyright and license details
 # libgrapheme - unicode string library
 .POSIX:
+.SUFFIXES:
 
 include config.mk
 
_AT_@ -227,7 +228,7 @@ man/grapheme_encode_utf8.3: man/grapheme_encode_utf8.sh config.mk
 
 man/libgrapheme.7: man/libgrapheme.sh config.mk
 
-$(GEN:=.o):
+$(GEN:=.o) gen/util.o:
         $(BUILD_CC) -c -o $_AT_ $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $(@:.o=.c)
 
 $(BENCHMARK:=.o) $(TEST:=.o):
Received on Wed Oct 05 2022 - 22:58:50 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 06 2022 - 00:00:54 CEST