[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: maintainer-makefile: catch uses of $< in non-implicit rules
From: |
Tim Rühsen |
Subject: |
Re: maintainer-makefile: catch uses of $< in non-implicit rules |
Date: |
Tue, 25 Jun 2019 15:24:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 |
Hi Akim,
the command expands to
if gawk --version | grep GNU >/dev/null 2>&1; then \
(cd . && autoconf --trace AC_CONFIG_FILES:'$1') | \
tr ' ' '\n' | \
/usr/bin/sed -ne '/Makefile/{s/\.in$//;p;}' | \
while read m; do \
make -qp -f $m .DUMMY-TARGET 2>/dev/null | \
gawk -v file=$m -e 'BEGIN { RS = "\n\n"; in_rules = 0; } /^#
Files/ { in_rules = 1; } /\$</ && in_rules && $0 !~ /^(.*\n)*
\.\w+(\.\w+)?:/ { print "Error: " file ": $< in a non implicit rule\n"
$0; status = 1; } END { exit status; }' || exit 1; \
done; \
fi
# make --version
GNU Make 4.2.1
Built for x86_64-redhat-linux-gnu
# gawk --version
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 3.1.6-p2, GNU MP 6.1.2)
# sed --version
sed (GNU sed) 4.5
# tr --version
tr (GNU coreutils) 8.31
# autoconf --version
autoconf (GNU Autoconf) 2.69
Regards, Tim
signature.asc
Description: OpenPGP digital signature
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/17
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Akim Demaille, 2019/06/17
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/17
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Akim Demaille, 2019/06/22
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/24
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Akim Demaille, 2019/06/24
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/25
- Re: maintainer-makefile: catch uses of $< in non-implicit rules,
Tim Rühsen <=
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Bruno Haible, 2019/06/25
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/25
- Re: maintainer-makefile: catch uses of $< in non-implicit rules, Tim Rühsen, 2019/06/25