Commit c9aa7288a83e3972cbd6da235e8ce8ceb156f749

Thomas de Grivel 2022-08-12T18:03:41

make .o and .lo and program files depend on Makefile and config.mk to rebuild on reconfigure

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/config.subr b/config.subr
index 920492b..1c0ccd7 100644
--- a/config.subr
+++ b/config.subr
@@ -3,6 +3,7 @@ set -e
 
 o_rule() {
     "$CC" $CPPFLAGS $CFLAGS -M "$1" || { echo "$1" | sed -e 's/^\(.*\)\.c$/\1.o: \1.c/'; }
+    echo "$1" | sed -e 's/^\(.*\)\.c$/\1.o: Makefile config.mk/'
 }
 
 lo_rule() {