aboutsummaryrefslogtreecommitdiff
path: root/rules/ips.mk
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-09-17 19:33:02 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-09-17 19:33:02 +0400
commit1e4f4acc5bdf13f4cd3b30c686a90aecd2895830 (patch)
treee7357a2014c06e10b0590d73ae52f17c22d41ea7 /rules/ips.mk
parent9b8490144b18f8e33854f4b70df768b5ea7819f1 (diff)
downloadcibs-1e4f4acc5bdf13f4cd3b30c686a90aecd2895830.tar.gz
Separate proto dirs for 32 and 64
Diffstat (limited to 'rules/ips.mk')
-rw-r--r--rules/ips.mk17
1 files changed, 11 insertions, 6 deletions
diff --git a/rules/ips.mk b/rules/ips.mk
index 184d517..94d8316 100644
--- a/rules/ips.mk
+++ b/rules/ips.mk
@@ -54,10 +54,9 @@ pkg-define += \
# Where to find files:
-pkg-protos = \
--d "$(destdir)" \
--d "$(sourcedir)" \
--d . \
+pkg-protos = -d "$(destdir.32)"
+pkg-protos += -d "$(destdir.64)"
+pkg-protos += -d "$(sourcedir)" -d .
transformations := \
$(transdir)/defaults \
@@ -91,8 +90,14 @@ mogrify-stamp: $(mogrified-manifests)
touch $@
+# pkgdepend is unhappy if some proto dirs do not exist:
+protodirs-stamp:
+ [ -d "$(destdir.32)" ] || mkdir -p "$(destdir.32)"
+ [ -d "$(destdir.64)" ] || mkdir -p "$(destdir.64)"
+ touch $@
+
depend-manifests := $(manifests:%=$(manifestdir)/depend-%)
-$(manifestdir)/depend-% : $(manifestdir)/mogrified-%
+$(manifestdir)/depend-% : $(manifestdir)/mogrified-% protodirs-stamp
pkgdepend generate -m $(pkg-protos) $< > $@ || (rm -f $@; false)
depend-stamp: $(depend-manifests)
touch $@
@@ -109,7 +114,7 @@ resolve-stamp: $(resolved-manifests)
# For convenience - make all, before publishing
pre-publish: resolve-stamp
-publish-stamp: pre-publish
+publish-stamp: pre-publish protodirs-stamp
@if [ -n "$(ips-repo)" ]; then \
set -x; \
pkgsend -s $(ips-repo) publish --fmri-in-manifest \