Mercurial > mxe-octave
comparison src/stable-octave.mk @ 4066:0962acdde3be
builld: allow out of source build
* Makefile.in: add TOP_BUILD_DIR var and use TOP_DIR=srcdir, TOP_BUILD_DIR=builddir, modify paths to use TOP_DIR where needed
* binary-dist-rules.mk: use TOP_DIR and TOP_BUILD_DIR where needed
* makeinst-script.sh: use script path to determine TOPDIR, use TOPDIR where needed
* src/default-octave.mk: install octave-version to builddir
* src/stable-octave.mk: install octave-version to builddir
* src/octave.mk: install octave-version to builddir
* tools/set-mxe-env.sh.in: update fir builddir and srcdir use
author | John Donoghue |
---|---|
date | Wed, 23 Dec 2015 08:11:04 -0500 |
parents | 1cab2860069e |
children | c8d0dbf634ff |
comparison
equal
deleted
inserted
replaced
4065:aacf84e7af56 | 4066:0962acdde3be |
---|---|
152 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \ | 152 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \ |
153 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \ | 153 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \ |
154 fi | 154 fi |
155 | 155 |
156 if [ $(MXE_SYSTEM) != msvc ]; then \ | 156 if [ $(MXE_SYSTEM) != msvc ]; then \ |
157 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_DIR)/octave install; \ | 157 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_BUILD_DIR)/octave install; \ |
158 fi | 158 fi |
159 | 159 |
160 # create a file with latest installed octave rev in it | 160 # create a file with latest installed octave rev in it |
161 echo "$($(PKG)_VERSION)" > $(TOP_DIR)/octave/octave-version | 161 echo "$($(PKG)_VERSION)" > $(TOP_BUILD_DIR)/octave/octave-version |
162 endef | 162 endef |