Mercurial > mxe-octave
view src/mingw-utils.mk @ 3442:ebe73c541a16
allow binary dist to work for gnu-linux target
* octave-wrapper.in: New file.
* bianry-dist-rules.mk: Install wrapper program for octave,
octave-config, and octave-cli binaries on gnu-linux systems.
Fix strip rules for gnu-linux systems.
Don't install Windows-specific files on gnu-linux systems.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Jan 2014 05:06:54 -0500 |
parents | 5ef49fb3299d |
children |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := mingw-utils $(PKG)_IGNORE := $(PKG)_CHECKSUM := 716f51d7622b36448fc1e92d2c69d8f41b1cc2df $(PKG)_SUBDIR := $(PKG)-$(word 1,$(subst -, ,$($(PKG)_VERSION))) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-mingw32-src.tar.lzma $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/MinGW/Extension/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/mingw/files/MinGW/Extension/mingw-utils/' | \ $(SED) -n 's,.*mingw-utils-\([0-9][^"]*\)/".*,\1,p' | \ head -1 endef define $(PKG)_BUILD # native build cp -Rp '$(1)' '$(1).native' cd '$(1).native' && ./configure \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(BUILD_TOOLS_PREFIX)' $(MAKE) -C '$(1).native/reimp' -j '$(JOBS)' $(INSTALL) -m755 '$(1).native/reimp/reimp' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)reimp' # cross build cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install endef