From: Robert Pluim Date: Mon, 5 Jun 2023 09:57:03 +0000 (+0200) Subject: Don't feed the awk scripts into themselves X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ba349aa32e98a53146794197c316f4765598ddbd;p=emacs.git Don't feed the awk scripts into themselves * admin/unidata/Makefile.in (${unidir}/charscript.el, ${unidir}/emoji-zwj.el): Define variables for the required sources and pass those to awk instead of $^, since the latter includes the awk script itself. --- diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index cccd85213f1..c7737583700 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in @@ -105,19 +105,23 @@ ${unidir}/idna-mapping.el: ${srcdir}/unidata-gen.el \ charscript.el: ${unidir}/charscript.el blocks = ${srcdir}/blocks.awk - +blocks_sources = ${srcdir}/Blocks.txt ${srcdir}/emoji-data.txt ${unidir}/charscript.el: ${blocks} -${unidir}/charscript.el: ${srcdir}/Blocks.txt ${srcdir}/emoji-data.txt - $(AM_V_GEN)$(AWK) -f ${blocks} $^ > $@ +# Don't use $^, since that includes the awk script. +${unidir}/charscript.el: ${blocks_sources} + $(AM_V_GEN)$(AWK) -f ${blocks} ${blocks_sources} > $@ .PHONY: emoji-zwj.el emoji-zwj.el: ${unidir}/emoji-zwj.el zwj = ${srcdir}/emoji-zwj.awk +zwj_sources = ${srcdir}/emoji-zwj-sequences.txt $(srcdir)/emoji-sequences.txt +${unidir}/emoji-zwj.el: ${zwj} -${unidir}/emoji-zwj.el: ${srcdir}/emoji-zwj-sequences.txt $(srcdir)/emoji-sequences.txt ${zwj} - $(AM_V_GEN)$(AWK) -f ${zwj} $^ > $@ +# Don't use $^, since that includes the awk script. +${unidir}/emoji-zwj.el: ${zwj_sources} + $(AM_V_GEN)$(AWK) -f ${zwj} ${zwj_sources} > $@ .PHONY: clean bootstrap-clean distclean maintainer-clean gen-clean