From a888044525d9f03290cc1afe62dcfa3bec4bc0b9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 19 Oct 2020 11:40:56 +0200 Subject: Cleanup: Automake: remove single use variables Throughout the Automake files, there is a consistent pattern somewhat like this: FOO_BINS = .... sbin_PROGRAMS += $(FOO_BINS) This commit all such patterns whenever the variable is not used anywhere else and appends to the target directly. Signed-off-by: David Oberhollenzer --- ubi-utils/Makemodule.am | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'ubi-utils') diff --git a/ubi-utils/Makemodule.am b/ubi-utils/Makemodule.am index 00d5d8f..7491a8a 100644 --- a/ubi-utils/Makemodule.am +++ b/ubi-utils/Makemodule.am @@ -42,17 +42,13 @@ ubihealthd_SOURCES = ubi-utils/ubihealthd.c ubihealthd_LDADD = libmtd.a libubi.a endif -UBI_BINS = \ +sbin_PROGRAMS += \ ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \ ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol ubiblock if WITH_GETRANDOM -UBI_BINS += ubihealthd +sbin_PROGRAMS += ubihealthd endif -UBI_MAN = \ - ubi-utils/ubinize.8 +dist_man8_MANS += ubi-utils/ubinize.8 -dist_man8_MANS += $(UBI_MAN) - -sbin_PROGRAMS += $(UBI_BINS) -- cgit v1.2.3