diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-10-26 16:34:14 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-10-26 16:34:14 +0400 |
commit | b7957ed3d77663d48a4d658637ca1d46b5991369 (patch) | |
tree | 766ca6a238cdc93310acca9c49471661071c3529 /rules | |
parent | c2beeae7bc3ce0e434c8c086505648d1bca24bb5 (diff) | |
download | cibs-b7957ed3d77663d48a4d658637ca1d46b5991369.tar.gz |
Proto dirs have to be relative in manifests
Diffstat (limited to 'rules')
-rw-r--r-- | rules/common.mk | 9 | ||||
-rw-r--r-- | rules/ips.mk | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/rules/common.mk b/rules/common.mk index 150906a..ffe40a9 100644 --- a/rules/common.mk +++ b/rules/common.mk @@ -42,15 +42,18 @@ mach64 := amd64 variants := +workdir-base := work +workdir := $(CURDIR)/$(workdir-base) +sourcedir := $(workdir)/source + define add-variant +protodir-base.$1 = $(workdir-base)/proto/$1 +builddir-base.$1 = $(workdir-base)/build/$1 protodir.$1 = $(workdir)/proto/$1 builddir.$1 = $(workdir)/build/$1 variants += $1 -protodirs += $(protodir.$1) endef -workdir := $(CURDIR)/work -sourcedir := $(workdir)/source CC.32 = gcc -m32 CC.64 = gcc -m64 diff --git a/rules/ips.mk b/rules/ips.mk index 52bbca7..186b425 100644 --- a/rules/ips.mk +++ b/rules/ips.mk @@ -47,13 +47,13 @@ pkg-define += \ # Add $(protodir.<variant>) to use in manifest: # file $(protodir.64) path=usr/include/header.64.h -pkg-define += $(foreach _,$(variants),-Dprotodir.$(_)="$(protodir.$(_))") +pkg-define += $(foreach _,$(variants),-Dprotodir.$(_)="$(protodir-base.$(_))") # Same for $(builddir.xxx): -pkg-define += $(foreach _,$(variants),-Dbuilddir.$(_)="$(builddir.$(_))") +pkg-define += $(foreach _,$(variants),-Dbuilddir.$(_)="$(builddir-base.$(_))") # Where to find files: -pkg-protos = $(protodirs:%=-d "%") +pkg-protos = $(foreach _,$(variants),-d "$(protodir.$(_))") pkg-protos += -d . transformations := \ |