shithub: scc

Download patch

ref: 2f72fce328c804346ac9bba13e26b1789fc5dc1c
parent: 73b180769110ca05065017952173233ad8bb1c34
author: Quentin Rameau <[email protected]>
date: Sat Jan 18 13:21:21 EST 2020

build: Do not use $* in non-inference rules

--- a/src/libc/arch/amd64/darwin/Makefile
+++ b/src/libc/arch/amd64/darwin/Makefile
@@ -36,7 +36,7 @@
 crt.$O: ../crt-posix.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/amd64/dragonfly/Makefile
+++ b/src/libc/arch/amd64/dragonfly/Makefile
@@ -37,7 +37,7 @@
 crt.$O: ../crt-posix.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/amd64/linux/Makefile
+++ b/src/libc/arch/amd64/linux/Makefile
@@ -38,7 +38,7 @@
 crt.$O: ../crt-posix.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/amd64/netbsd/Makefile
+++ b/src/libc/arch/amd64/netbsd/Makefile
@@ -37,7 +37,7 @@
 crt.$O: ../crt-posix.s ../../crt-netbsd.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/amd64/openbsd/Makefile
+++ b/src/libc/arch/amd64/openbsd/Makefile
@@ -35,7 +35,7 @@
 crt.$O: ../crt-posix.s ../../crt-openbsd.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/arm32/linux/Makefile
+++ b/src/libc/arch/arm32/linux/Makefile
@@ -37,7 +37,7 @@
 crt.o: ../crt-posix.s
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)
--- a/src/libc/arch/i386/linux/Makefile
+++ b/src/libc/arch/i386/linux/Makefile
@@ -37,7 +37,7 @@
 signal.o: ../../posix/signal.c
 
 $(GENSRC): syscall.lst
-	gensys.sh $*
+	gensys.sh $(@:.s=)
 
 clean:
 	rm -f $(GENSRC)