diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-17 19:33:02 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-17 19:33:02 +0400 |
commit | 1e4f4acc5bdf13f4cd3b30c686a90aecd2895830 (patch) | |
tree | e7357a2014c06e10b0590d73ae52f17c22d41ea7 /rules/ips.mk | |
parent | 9b8490144b18f8e33854f4b70df768b5ea7819f1 (diff) | |
download | cibs-1e4f4acc5bdf13f4cd3b30c686a90aecd2895830.tar.gz |
Separate proto dirs for 32 and 64
Diffstat (limited to 'rules/ips.mk')
-rw-r--r-- | rules/ips.mk | 17 |
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 \ |