build-dir = $(shell cd . && pwd)
tree-dir = $(subst $(top-build-dir),,$(build-dir))
+absdir = $(shell cd $(1) ; pwd)
+
+
ifneq ($(configure-srcdir),.)
srcdir-build = 1
endif
src-wildcard = $(subst $(src-dir)/,,$(wildcard $(src-dir)/$(1)))
ifeq ($(distdir),)
- distdir = $(top-src-dir)/$(outdir)/$(DIST_NAME)
+ distdir = $(top-build-dir)/$(outdir)/$(DIST_NAME)
DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
endif
distname = $(package)-$(TOPLEVEL_VERSION)
# stepmake package support.
DEPTH = $(depth)/$(package-depth)
+INSTALLPY=$(PYTHON) $(step-bindir)/install.py -c
+INSTALL=$(INSTALLPY)
+
group-dir = $(shell cd $(DEPTH);pwd)/..
-release-dir = $(group-dir)/releases
patch-dir = $(group-dir)/patches
rpm-sources = $(release-dir)
rpm-build = $(group-dir)/RedHat/BUILD
DOCDIR=$(depth)/$(outdir)
#?
-STRIPDEBUG=true
+STRIPDEBUG=true
STRIP=strip --strip-debug
DO_STRIP=true
-LOOP=$(foreach i, $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C $(i) $@ &&) true
+LOOP=+$(foreach i, $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C $(i) $@ &&) true
ETAGS_FLAGS =
-CTAGS_FLAGS =
+CTAGS_FLAGS =
makeflags=$(patsubst %==, %, $(patsubst ---%,,$(patsubst ----%,,$(MAKEFLAGS:%=--%))))
ALL_SOURCES = $(SOURCE_FILES)
-# Check if we are building for Cygwin
-#
-HOST_ARCH=$(shell $(CC) -dumpmachine)
-ifeq ($(HOST_ARCH),i686-pc-cygwin)
-CYGWIN_BUILD = yes
-endif
-ifeq ($(HOST_ARCH),i686-cygwin)
+ifeq (cygwin,$(findstring cygwin,$(HOST_ARCH)))
CYGWIN_BUILD = yes
endif
-ifeq ($(HOST_ARCH),i586-mingw32msvc)
-MINGW_BUILD = yes
-endif
-ifeq ($(HOST_ARCH),i386-mingw32)
+ifeq (mingw,$(findstring mingw,$(HOST_ARCH)))
MINGW_BUILD = yes
endif
-ifeq ($(HOST_ARCH),ppc-darwin)
+
+ifeq (darwin,$(findstring darwin,$(HOST_ARCH)))
DARWIN_BUILD = yes
endif