![Thomas De Schampheleire](/assets/img/avatar_default.png)
While the autotools infrastructure was using FOO_MAKE_OPT, generic packages were typically using FOO_MAKE_OPTS. This inconsistency becomes a problem when a new infrastructure is introduced that wants to make use of FOO_MAKE_OPT(S), and can live alongside either generic-package or autotools-package. The new infrastructure will have to choose between either OPT or OPTS, and thus rule out transparent usage by respectively generic packages or generic packages. An example of such an infrastructure is kconfig-package, which provides kconfig-related make targets. The OPTS variant is more logical, as there are typically multiple options. This patch renames all occurrences of FOO_MAKE_OPT in FOO_MAKE_OPTS. Sed command used: find * -type f | xargs sed -i 's#_MAKE_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
869 B
Makefile
32 lines
869 B
Makefile
################################################################################
|
|
#
|
|
# lshw
|
|
#
|
|
################################################################################
|
|
|
|
LSHW_VERSION = B.02.16
|
|
LSHW_SITE = http://ezix.org/software/files
|
|
LSHW_LICENSE = GPLv2
|
|
LSHW_LICENSE_FILES = COPYING
|
|
|
|
LSHW_CFLAGS = $(TARGET_CFLAGS)
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
LSHW_CFLAGS += -DNONLS
|
|
endif
|
|
|
|
LSHW_MAKE_OPTS = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \
|
|
RPM_OPT_FLAGS="$(LSHW_CFLAGS)" all
|
|
LSHW_MAKE_ENV = LIBS="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
|
|
LSHW_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
|
|
|
define LSHW_BUILD_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPTS)
|
|
endef
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
|
|
$(LSHW_MAKE_OPTS) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|