make/update-rules.sh

changeset 125
e195652038e0
parent 77
808a7324b467
--- a/make/update-rules.sh	Wed May 20 15:16:58 2026 +0200
+++ b/make/update-rules.sh	Wed May 20 15:52:17 2026 +0200
@@ -30,7 +30,7 @@
 sed '/FORCE:/q' Makefile.old > Makefile
 echo >> Makefile
 for file in `ls *.c` ; do
-  "$CC" -MT "$target/${file/.c/.o}" -MM $CFLAGS "$file"
+  "$CC" -MT "$target/${file%.c}.o" -MM $CFLAGS "$file"
   printf '\t@echo "Compiling $<"\n'
   printf '\t$(CC) -o $@ $(CFLAGS) -c $<\n\n'
 done  >> Makefile

mercurial