comparison src/default-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 3a38544f2a8f
children 094981f6f787
comparison
equal deleted inserted replaced
4065:aacf84e7af56 4066:0962acdde3be
161 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \ 161 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \
162 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \ 162 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \
163 fi 163 fi
164 164
165 if [ $(MXE_SYSTEM) != msvc ]; then \ 165 if [ $(MXE_SYSTEM) != msvc ]; then \
166 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_DIR)/octave install; \ 166 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_BUILD_DIR)/octave install; \
167 fi 167 fi
168 168
169 # create a file with latest installed octave rev in it 169 # create a file with latest installed octave rev in it
170 echo "$($(PKG)_VERSION)" > $(TOP_DIR)/octave/octave-version 170 echo "$($(PKG)_VERSION)" > $(TOP_BUILD_DIR)/octave/octave-version
171 endef 171 endef