mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-11 14:23:52 +08:00
infra: remove redundant $(call) on pkgdir, pkgname, pkgparentdir
When calling make 'functions', the $(call) keyword is only needed if the function takes arguments. For pkgdir, pkgname and pkgparentdir this is not the case, so we can remove the call to make things more readable. Suggested-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e7ab4b49f4
commit
3880a6ab3c
@ -275,5 +275,5 @@ endef
|
||||
# autotools-package -- the target generator macro for autotools packages
|
||||
################################################################################
|
||||
|
||||
autotools-package = $(call inner-autotools-package,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
||||
host-autotools-package = $(call inner-autotools-package,host-$(call pkgname),$(call UPPERCASE,host-$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),host)
|
||||
autotools-package = $(call inner-autotools-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
||||
host-autotools-package = $(call inner-autotools-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),host)
|
||||
|
@ -150,8 +150,8 @@ endef
|
||||
# cmake-package -- the target generator macro for CMake packages
|
||||
################################################################################
|
||||
|
||||
cmake-package = $(call inner-cmake-package,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
||||
host-cmake-package = $(call inner-cmake-package,host-$(call pkgname),$(call UPPERCASE,host-$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),host)
|
||||
cmake-package = $(call inner-cmake-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
||||
host-cmake-package = $(call inner-cmake-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),host)
|
||||
|
||||
################################################################################
|
||||
# Generation of the CMake toolchain file
|
||||
|
@ -617,8 +617,8 @@ endef # inner-generic-package
|
||||
################################################################################
|
||||
|
||||
# In the case of target packages, keep the package name "pkg"
|
||||
generic-package = $(call inner-generic-package,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
||||
generic-package = $(call inner-generic-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
||||
# In the case of host packages, turn the package name "pkg" into "host-pkg"
|
||||
host-generic-package = $(call inner-generic-package,host-$(call pkgname),$(call UPPERCASE,host-$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),host)
|
||||
host-generic-package = $(call inner-generic-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),host)
|
||||
|
||||
# :mode=makefile:
|
||||
|
@ -78,5 +78,5 @@ endef
|
||||
# luarocks-package -- the target generator macro for LuaRocks packages
|
||||
################################################################################
|
||||
|
||||
luarocks-package = $(call inner-luarocks-package,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
||||
luarocks-package = $(call inner-luarocks-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
||||
# host-luarocks-package not supported
|
||||
|
@ -220,5 +220,5 @@ endef
|
||||
# python-package -- the target generator macro for Python packages
|
||||
################################################################################
|
||||
|
||||
python-package = $(call inner-python-package,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
||||
host-python-package = $(call inner-python-package,host-$(call pkgname),$(call UPPERCASE,host-$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),host)
|
||||
python-package = $(call inner-python-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
||||
host-python-package = $(call inner-python-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),host)
|
||||
|
@ -59,8 +59,8 @@ endef
|
||||
# pkgdir macro is carefully written to handle the case of the Linux
|
||||
# package, for which the package directory is an empty string.
|
||||
pkgdir = $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
pkgname = $(lastword $(subst /, ,$(call pkgdir)))
|
||||
pkgparentdir = $(patsubst %$(call pkgname)/,%,$(call pkgdir))
|
||||
pkgname = $(lastword $(subst /, ,$(pkgdir)))
|
||||
pkgparentdir = $(patsubst %$(pkgname)/,%,$(pkgdir))
|
||||
|
||||
# Define extractors for different archive suffixes
|
||||
INFLATE.bz2 = $(BZCAT)
|
||||
|
Loading…
Reference in New Issue
Block a user