build: simplify building *config targets
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Tue, 7 Apr 2020 20:07:22 +0000 (17:07 -0300)
committerPetr Štetiar <ynezz@true.cz>
Thu, 9 Apr 2020 10:51:10 +0000 (12:51 +0200)
commit8636a172146f3b78474c61a7021ca2628b3370b1
tree7559405992fa3e31091023792defe8381c16eebb
parentccad1d681782fdebaea3631fa623653c2188185a
build: simplify building *config targets

Instead of passing pkg-config location through a variable when building
qconf (make xconfig), prepend its parent directory to the PATH, as it is
being done for other conf targets.

Use a Makefile pattern rule to group all 'scripts/config/%onf'
(currently conf, mconf, qconf) targets in a single rule.  Add -O2 to
CFLAGS when building them as well.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
include/toplevel.mk
scripts/config/Makefile