# HG changeset patch # User John W. Eaton # Date 1390204819 18000 # Node ID 9fcc72373e249c32290b01072910ff1386dd4268 # Parent 7864014bc84a31039bf96764c8a36fed7f7ef8d3 build stable-octave package by default * Makefile.in (STABLE_BUILD): Set default to yes. (OCTAVE_TARGET): Set here instead of in binary-dist-rules.mk * binary-dist-rules.mk: Use WINDOWS_BINARY_DIST_DEPS instead of WINDOWS_BINARY_DIST_FILES. (make-stable-dist-directory): Delete macro definition. diff -r 7864014bc84a -r 9fcc72373e24 Makefile.in --- a/Makefile.in Sun Jan 19 17:37:35 2014 -0500 +++ b/Makefile.in Mon Jan 20 03:00:19 2014 -0500 @@ -1,12 +1,18 @@ # This file is part of MXE. # See index.html for further information. +STABLE_BUILD := yes + +ifeq ($(STABLE_BUILD),yes) + OCTAVE_TARGET := stable-octave +else + OCTAVE_TARGET := octave +endif + PWD := $(shell pwd) STRIP_DIST_FILES := @STRIP_DIST_FILES@ -STABLE_BUILD := no - DATE := $(shell date +%Y-%m-%d-%H-%M) ## Configuration variables. @@ -420,7 +426,7 @@ endif .PHONY: all -all: configure Makefile octave +all: configure Makefile $(OCTAVE_PACKAGE) .PHONY: all-packages all-packages: $(PKGS) diff -r 7864014bc84a -r 9fcc72373e24 binary-dist-rules.mk --- a/binary-dist-rules.mk Sun Jan 19 17:37:35 2014 -0500 +++ b/binary-dist-rules.mk Mon Jan 20 03:00:19 2014 -0500 @@ -1,9 +1,7 @@ ifeq ($(STABLE_BUILD),yes) - OCTAVE_TARGET := stable-octave OCTAVE_DIST_NAME := octave-$($(OCTAVE_TARGET)_VERSION) else - OCTAVE_TARGET := octave OCTAVE_DIST_NAME := octave-$(DATE) endif @@ -13,10 +11,10 @@ ## FIXME: We need a way to ask "is this a windows build?" ifeq ($(MXE_SYSTEM), mingw) - WINDOWS_BINARY_DIST_FILES := msys-base npp + WINDOWS_BINARY_DIST_DEPS := msys-base npp endif ifeq ($(MXE_SYSTEM), msvc) - WINDOWS_BINARY_DIST_FILES := msys-base npp + WINDOWS_BINARY_DIST_DEPS := msys-base npp endif BINARY_DIST_DEPS := \ @@ -26,7 +24,7 @@ octave-forge-packages \ units \ transfig \ - $(WINDOWS_BINARY_DIST_FILES) + $(WINDOWS_BINARY_DIST_DEPS) define delete-dist-directory echo "deleting previous dist directory..." @@ -35,11 +33,6 @@ define make-dist-directory echo "creating dist directory..." - mkdir -p $(TOP_DIR)/dist/octave-$(DATE) -endef - -define make-stable-dist-directory - echo "creating dist directory..." mkdir -p $(OCTAVE_DIST_DIR) endef