From: Mark Wooding Date: Thu, 8 Aug 2019 10:15:17 +0000 (+0100) Subject: vars.am: Add GNU Make pattern rules for Sod output files. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/055797d428ee796327bd81e0406bc765cac9ef7f vars.am: Add GNU Make pattern rules for Sod output files. 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. --- diff --git a/vars.am b/vars.am index e4406ca..b3f81b7 100644 --- 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.