build: Fix getconf generation - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 97629ab38692ee65250a882bb88eb31c71e51f00
(DIR) parent b1c6185a40f7a40381ab78b97f6715b09f84a9e4
(HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 17 Mar 2025 19:03:13 +0100
build: Fix getconf generation
The Makefile was relaying in two extensions:
1- Inference rule chaining: Based in getconf.c -> getconf.o -> getconf
2- Inference rule .o: POSIX defines the .c rule, but not the .o rule
(what makes sense because to be useful you need inference rule chaining).
Diffstat:
M Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -215,7 +215,7 @@ libutil.a: $(LIBUTILOBJ)
$(AR) $(ARFLAGS) $@ $?
$(RANLIB) $@
-getconf.o: getconf.h
+getconf: getconf.h
getconf.h:
scripts/getconf.sh > $@