diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-10-01 15:17:39 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-10-01 15:17:39 +0400 |
commit | d7cd7ae95e86736c315e3d5f8b6e414bf17ff533 (patch) | |
tree | fc3d0663a9c5f53f222af6e274db114e0efdd21a /rules | |
parent | 246fbe2007da3224dc05f31bd832e087ed2f6d85 (diff) | |
download | cibs-d7cd7ae95e86736c315e3d5f8b6e414bf17ff533.tar.gz |
Pass all variable from Makefile to pkgmogrify
Diffstat (limited to 'rules')
-rw-r--r-- | rules/ips.mk | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/rules/ips.mk b/rules/ips.mk index d215af5..4c07710 100644 --- a/rules/ips.mk +++ b/rules/ips.mk @@ -35,18 +35,10 @@ ips-version = $(version) endif # Substitutions in IPS manifest: -# XXX What about to grep all variables from component makefile? -pkg-define = \ --Dsummary="$(summary)" \ --Dlicense="$(license)" \ --Dlicense-file="$(license-file)" \ --Dhome="$(home)" \ --Dname="$(name)" \ --Dversion="$(version)" \ --Dips-version="$(ips-version)" \ --Darchive="$(archive)" \ --Ddownload="$(download)" \ --Dchecksum="$(checksum)" \ +makefile-vars := $(shell sed -n 's/^ *\([0-9a-zA-Z]*\) *[:?]*=.*$$/\1/p' Makefile | sort -u) +pkg-define = $(foreach _,$(makefile-vars),-D$(_)="$($(_))") +pkg-define += -Dips-version="$(ips-version)" + pkg-define += \ -DMACH="$(mach)" \ |