X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Fgeneric-vars.make;h=b0fc521e931334a8f4c25867658fe183df7c4b7c;hb=6c323bc1bb27a79f687f5f3f3ed6b105aad24caa;hp=48b1c90edefb680f4afb2a84e93d01456381e568;hpb=34647e9ef3e94dbd4d8e63e6a2bb634417d2ce0b;p=lilypond.git diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make index 48b1c90ede..b0fc521e93 100644 --- a/stepmake/stepmake/generic-vars.make +++ b/stepmake/stepmake/generic-vars.make @@ -2,6 +2,9 @@ top-build-dir = $(shell cd $(depth) && pwd) 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 @@ -21,25 +24,29 @@ src-dir = $(top-src-dir)$(tree-dir) VPATH = $(src-dir) endif +abs-src-dir = $(top-src-dir)$(tree-dir) + .UNEXPORT: build-dir src-dir tree-dir 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) doc-dir = $(src-depth)/Documentation -po-dir = $(src-depth)/po -step-bindir = $(stepmake)/bin +po-srcdir = $(src-depth)/po +po-outdir = $(depth)/po/$(outdir) # stepmake package support. DEPTH = $(depth)/$(package-depth) +INSTALLPY=$(buildscript-dir)/install -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 @@ -58,10 +65,13 @@ TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_ endif -# no local settings in the build process. +# no locale settings in the build process. LANG= export LANG + +INFO_DIRECTORIES = Documentation + # clean file lists: # ERROR_LOG = 2> /dev/null @@ -72,18 +82,17 @@ INCLUDES = $(src-dir)/include $(outdir) $($(PACKAGE)_INCLUDES) $(MODULE_INCLUDES M4 = m4 -DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES) $(src-wildcard,SConscript) $(wildcard SConscript) 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:%=--%)))) @@ -95,12 +104,14 @@ OUTIN_FILES = $(addprefix $(outdir)/, $(IN_FILES:%.in=%)) ALL_SOURCES = $(SOURCE_FILES) -# Check if we are building for Cygwin -# -HOST_ARCH=$(shell $(CC) -dumpmachine) -ifeq ($(HOST_ARCH),i686-pc-cygwin) +ifeq (cygwin,$(findstring cygwin,$(HOST_ARCH))) CYGWIN_BUILD = yes endif -ifeq ($(HOST_ARCH),i686-cygwin) -CYGWIN_BUILD = yes + +ifeq (mingw,$(findstring mingw,$(HOST_ARCH))) +MINGW_BUILD = yes +endif + +ifeq (darwin,$(findstring darwin,$(HOST_ARCH))) +DARWIN_BUILD = yes endif