config/Makefile
Ben Elliston 1e826a0344 * config.guess: Replace large 'set_cc_for_build' shell variable,
that is executed via eval, with a POSIX shell function.
	* Makefile (shellcheck): Ignore SC2039 diagnostics ("In POSIX sh,
	RANDOM is undefined") and SC2172 ("Trapping signals by number is
	not well defined. Prefer signal names").
2018-07-12 07:56:15 +10:00

21 lines
515 B
Makefile

all:
check: check-guess check-sub
manpages: doc/config.guess.1 doc/config.sub.1
doc/config.guess.1: config.guess
help2man -N --include=doc/config.guess.x --output=$@ ./config.guess
doc/config.sub.1: config.sub
help2man -N --name "validate and canonicalize a configuration triplet" --output=$@ ./config.sub
check-guess:
cd testsuite && sh config-guess.sh && rm uname
check-sub:
cd testsuite && sh config-sub.sh
shellcheck:
shellcheck -e SC2006,SC2039,SC2172 -f gcc config.guess config.sub testsuite/*.sh