mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03: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:
committed by
Peter Korsgaard
parent
e7ab4b49f4
commit
3880a6ab3c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user