src/: Write dependency-tracking Makefile fragments.
[sod] / vars.am
diff --git a/vars.am b/vars.am
index b3f81b7..21f03ce 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -94,8 +94,10 @@ V_SOD_h_0             = @echo "  SOD[h]   $@";
 SUFFIXES               += .c .h .sod
 .sod.c:; $(V_SOD_c)$(SOD) -tc $<
 .sod.h:; $(V_SOD_h)$(SOD) -th $<
-%.c: %.sod $(SOD); $(V_SOD_c)$(SOD) -tc $<
-%.h: %.sod $(SOD); $(V_SOD_h)$(SOD) -th $<
+%.c: %.sod $(SOD); $(V_SOD_c)$(SOD) -M -tc $<
+%.h: %.sod $(SOD); $(V_SOD_h)$(SOD) -M -th $<
+
+DISTCLEANFILES         += *.c-dep *.h-dep
 
 ###--------------------------------------------------------------------------
 ### Silent rules for Lisp.