X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Fgeneric-vars.make;h=fb75166e1ba61c35d0b1ad7e51237df30567bcfb;hb=fbe9dcd2e44caaf188782af4d6bd89e4d1ba86d8;hp=c61fa5ec82040fd1f1bac5c18333326dcb927990;hpb=fb6222b9d35feba7df3a20b99121f10591d6e8f1;p=lilypond.git diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make index c61fa5ec82..fb75166e1b 100644 --- a/stepmake/stepmake/generic-vars.make +++ b/stepmake/stepmake/generic-vars.make @@ -1,9 +1,7 @@ -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) +top-build-dir := $(realpath $(depth) ) +build-dir := $(realpath . ) +tree-dir = $(subst $(top-build-dir),,$(build-dir)) ifneq ($(configure-srcdir),.) srcdir-build = 1 @@ -15,7 +13,7 @@ else src-depth = $(configure-srcdir) endif -top-src-dir := $(shell cd $(src-depth); pwd) +top-src-dir := $(realpath $(src-depth)) ifndef srcdir-build src-dir = . @@ -24,6 +22,8 @@ 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))) @@ -35,20 +35,15 @@ 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=$(PYTHON) $(step-bindir)/install.py -c +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 package-icon = $(outdir)/$(package)-icon.xpm ifneq ($(strip $(MY_PATCH_LEVEL)),) @@ -64,10 +59,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 @@ -78,7 +76,6 @@ INCLUDES = $(src-dir)/include $(outdir) $($(PACKAGE)_INCLUDES) $(MODULE_INCLUDES M4 = m4 -DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES) $(call src-wildcard,SConscript) DOCDIR=$(depth)/$(outdir) #?