summaryrefslogtreecommitdiff
path: root/usr/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/Makefile')
-rw-r--r--usr/src/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/Makefile b/usr/src/Makefile
index d124040b35..0e3d6f5059 100644
--- a/usr/src/Makefile
+++ b/usr/src/Makefile
@@ -117,14 +117,17 @@ rootlibs: sgs
@cd lib; pwd; $(MAKE) install
closedbins: FRC $(ROOTDIRS)
- @if [ "$$CLOSED_IS_PRESENT" = no ]; then \
- if [ ! -d "$$ON_CLOSED_BINS/root_$(MACH)" ]; then \
+ @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
+ if [ "$$CLOSED_IS_PRESENT" = no ]; then \
+ if [ ! -d "$$CLOSED_ROOT" ]; then \
$(ECHO) "Error: if closed sources are not present," \
"ON_CLOSED_BINS must point to closed binaries."; \
+ $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
+ "present in $$ON_CLOSED_BINS."; \
exit 1; \
fi; \
- $(ECHO) "Copying closed binaries from $$ON_CLOSED_BINS"; \
- (cd $$ON_CLOSED_BINS/root_$(MACH); tar cf - .) | \
+ $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
+ (cd $$CLOSED_ROOT; tar cf - .) | \
(cd $(ROOT); tar xBpf -); \
fi