changeset 4078:e5e0b3f7244b

Dont copy src directory if binary packages enabled * changed binary-dist-rules.mk: copy-dist-files, copy src only if ENABLE_BINARY_PACKAGES=no
author John Donoghue <john.donoghue@ieee.org>
date Sun, 10 Jan 2016 08:13:04 -0500
parents d49726dd114a
children 8f22781fe395
files binary-dist-rules.mk
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/binary-dist-rules.mk	Sun Jan 10 08:08:20 2016 -0500
+++ b/binary-dist-rules.mk	Sun Jan 10 08:13:04 2016 -0500
@@ -50,8 +50,10 @@
     && tar -c $(TAR_H_OPTION) -f - . | ( cd $(OCTAVE_DIST_DIR) ; tar xpf - )
   echo "  octaverc file..."
   cp $(TOP_DIR)/octaverc $(OCTAVE_DIST_DIR)/share/octave/site/m/startup/octaverc
-  echo "  build_packages.m..."
-  cp $(TOP_DIR)/build_packages.m $(OCTAVE_DIST_DIR)/src
+  if [ $(ENABLE_BINARY_PACKAGES) = no ]; then \
+    echo "  build_packages.m..."; \
+    cp $(TOP_DIR)/build_packages.m $(OCTAVE_DIST_DIR)/src; \
+  fi
 endef
 
 ifeq ($(MXE_WINDOWS_BUILD),yes)