vars.am: Add GNU Make pattern rules for Sod output files.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 8 Aug 2019 10:15:17 +0000 (11:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 8 Aug 2019 10:17:09 +0000 (11:17 +0100)
Additional dependencies in suffix rules don't work, apparently.  Non-GNU
make(1) should just see bizarre filenames which nobody cares about, so
this is a safe thing to do.

vars.am

diff --git a/vars.am b/vars.am
index e4406ca..b3f81b7 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -92,8 +92,10 @@ V_SOD_h_0             = @echo "  SOD[h]   $@";
 
 ## Build rules.
 SUFFIXES               += .c .h .sod
-.sod.c: $(SOD); $(V_SOD_c)$(SOD) -tc $<
-.sod.h: $(SOD); $(V_SOD_h)$(SOD) -th $<
+.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 $<
 
 ###--------------------------------------------------------------------------
 ### Silent rules for Lisp.