image.in: pkg profile handling functions

These are alike to lists/groups ones.
This commit is contained in:
Michael Shigorin 2016-03-25 13:49:13 +03:00
parent 1f13b3a039
commit caf25f0279

View File

@ -13,6 +13,10 @@ list = $(addprefix $(PKGDIR)/,$(call rlist,$(1)))
rgroup = $(1:%=groups/%.directory)
group = $(addprefix $(PKGDIR)/,$(call rgroup,$(1)))
# prefix/suffix pkg profile name to form a path (relative/absolute)
rprofile = $(1:%=profiles/%.directory)
profile = $(addprefix $(PKGDIR)/,$(call rprofile,$(1)))
# map first argument (a function) onto second one (an argument list)
map = $(foreach a,$(2),$(call $(1),$(a)))