make: Replace pwd by $(PWD)

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-18 13:45:55 +00:00
commit f70465cbd5
17 changed files with 25 additions and 25 deletions

View file

@ -2,7 +2,7 @@ BACKUP_SOURCE ?= .
BACKUP_TARGET ?= ..
BACKUP_DATE ?= $(shell date +'%y%m%d-%H%M%S')
_BACKUP_SOURCE = $(notdir $(shell cd $(BACKUP_SOURCE); pwd))
_BACKUP_SOURCE = $(notdir $(shell cd $(BACKUP_SOURCE); $(PWD)))
backup: distclean
tar -C .. $(_BACKUP_SOURCE) -cjf $(BACKUP_TARGET)/$(_BACKUP_SOURCE)-$(BACKUP_DATE).tar.bz2

View file

@ -1,4 +1,4 @@
GETTEXT_LOCALE ?= $(notdir $(shell pwd))
GETTEXT_LOCALE ?= $(notdir $(shell $(PWD)))
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/rules.mk

View file

@ -6,7 +6,7 @@
GIT_SRV_ADMIN_SH = ssh $(JANWARE_USER)@git.jannet.de /opt/jw-build/bin/git-srv-admin.sh
GIT_REPO_URL = ssh://$(JANWARE_USER)@git.jannet.de/srv/git/$(JANWARE_USER)/contrib/$(PROJECT_DIRNAME)
SUBMOD_PATH = $(patsubst $(abspath $(TOPDIR))/%,%,$(abspath $(shell pwd)/$(SUBMOD_SRC_DIR)))
SUBMOD_PATH = $(patsubst $(abspath $(TOPDIR))/%,%,$(abspath $(shell $(PWD))/$(SUBMOD_SRC_DIR)))
SUBMOD_SRC_DIR ?= .
SUB_GIT = git -C $(SUBMOD_SRC_DIR)

View file

@ -53,7 +53,7 @@ echo.libs:
@echo INSTALLED_LIB = $(INSTALLED_LIB)
install-links:
l=$(shell pwd)/$(notdir $(INSTALLED_LIB_SO)) ;\
l=$(shell $(PWD))/$(notdir $(INSTALLED_LIB_SO)) ;\
cd $(dir $(INSTALLED_LIB_SO)) &&\
sudo ln -sf $$l
# ------------------------------------------ contrib libraries

View file

@ -34,8 +34,8 @@ else
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
KERNEL_SRC_DIR = linux-$(KERNEL_VERSION)
endif
#HOST = $(shell cd ../..; pwd | xargs basename)
WD := $(shell pwd)
#HOST = $(shell cd ../..; $(PWD) | xargs basename)
WD := $(shell $(PWD))
TAG = $(shell echo V_$(KERNEL_VERSION)_$(RPM_RELEASE) | $(SED) 's/\./_/g')
ARCH = $(shell $(RPMBUILD) --showrc | $(SED) '/build arch / !d; s/.*build arch *://; s/ //g')

View file

@ -27,7 +27,7 @@ else
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
KERNEL_SRC_DIR = linux-$(KERNEL_VERSION)
endif
WD := $(shell pwd)
WD := $(shell $(PWD))
TAG = $(shell echo V_$(KERNEL_VERSION)_$(RPM_RELEASE) | $(SED) 's/\./_/g')
ARCH = $(shell $(RPMBUILD) --showrc | $(SED) '/build arch / !d; s/.*build arch *://; s/ //g')

View file

@ -1,7 +1,7 @@
IS_PLUGIN = true
USE_PLUGIN_VERSION_LIB ?= true
PLUGIN_API ?= $(notdir $(shell cd ..; pwd))
PLUGIN_NAME ?= $(notdir $(shell pwd))
PLUGIN_API ?= $(notdir $(shell cd ..; $(PWD)))
PLUGIN_NAME ?= $(notdir $(shell $(PWD)))
PLUGIN_PREFIX ?= feedfs
ifneq ($(TARGET),mingw)

View file

@ -18,8 +18,8 @@ PY_SRC_PY ?= $(wildcard *.py)
PY_ALL_PY = $(sort $(PY_SRC_PY) __init__.py)
PY_PYC = $(patsubst %.py,%.pyc,$(PY_ALL_PY))
PY_INSTALL_PKG_MOD ?= $(shell pwd | sed 's%.*/python/%%; s%/.*%%')
PY_INSTALL_SUB_MOD ?= $(shell pwd | sed "s%.*/$(PY_INSTALL_PKG_MOD)\(/\|$$\)%%")
PY_INSTALL_PKG_MOD ?= $(shell $(PWD) | sed 's%.*/python/%%; s%/.*%%')
PY_INSTALL_SUB_MOD ?= $(shell $(PWD) | sed "s%.*/$(PY_INSTALL_PKG_MOD)\(/\|$$\)%%")
ifneq ($(PY_INSTALL_SUB_MOD),)
PY_INSTALL_MOD ?= $(PY_INSTALL_PKG_MOD)/$(PY_INSTALL_SUB_MOD)
else

View file

@ -1,6 +1,6 @@
include $(MODDIR)/make/defs.mk
EXE ?= $(shell pwd).py
EXE ?= $(shell $(PWD)).py
EXE_PATH ?= ./$(EXE)
all:

View file

@ -1,5 +1,5 @@
QMAKE_MAKEFILE = Makefile.qt
EXE ?= $(notdir $(shell pwd))
EXE ?= $(notdir $(shell $(PWD)))
QMAKE = qmake-qt5
all:

View file

@ -3,13 +3,13 @@
# contact@jannet.de
# $Id$
DIR_BASENAME = $(notdir $(shell pwd))
DIR_BASENAME = $(notdir $(shell $(PWD)))
ifeq ($(EXE_BASENAME),)
ifneq ($(DIR_BASENAME),test)
EXE_BASENAME = $(DIR_BASENAME)
else
EXE_BASENAME = test-$(notdir $(shell cd ..; pwd))
EXE_BASENAME = test-$(notdir $(shell cd ..; $(PWD)))
endif
endif

View file

@ -11,22 +11,22 @@ endif
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
$(HOME)/bin/%.py: %.py
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell $(PWD))/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
$(HOME)/bin/%.pl: %.pl
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell pwd)/$<" '"$$@"' > $@.tmp
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell $(PWD))/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
$(HOME)/bin/%.sh: %.sh
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
$(HOME)/bin/%: %
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@

View file

@ -11,7 +11,7 @@ DEVELOPMENT ?= true
CVS_PROJ_DIR := $(dir $(lastword $(MAKEFILE_LIST)))/../..
ifeq ($(PROJECT),)
PROJECT = $(notdir $(shell pwd))
PROJECT = $(notdir $(shell $(PWD)))
endif
ifeq ($(PREFIX),)

View file

@ -3,7 +3,7 @@
# contact@jannet.de
# $Id$
EXE_BASENAME ?= test-$(notdir $(shell pwd))
EXE_BASENAME ?= test-$(notdir $(shell $(PWD)))
include $(MODDIR)/make/run.mk

View file

@ -6,7 +6,7 @@
# -- project data
CUSTOMER ?= jannet
PROJECT ?= legal
TOPIC ?= $(notdir $(shell pwd))
TOPIC ?= $(notdir $(shell $(PWD)))
VERSION ?= $(shell sed "s/-dev$$//" VERSION)
AUTHORS ?=
#TITLE ?= Allgemeine Bedingungen für
@ -124,7 +124,7 @@ HTML_WARN_DONT_EDIT = "\
| process! |\n\
+---------------------------------------------------+\n\
-->"
WD = `pwd`
WD = $(shell $(PWD))
IMAGES = $(patsubst %,$(IMAGEDIR)/%,$(FRONTLOGO_EPS) $(FRONTLOGO_WEB) $(FRONTLOGO_PDF) \
$(ICON_UP) $(ICON_PREV) $(ICON_NEXT) $(ICON_INDEX) $(ICON_CONTENTS)) \

View file

@ -3,7 +3,7 @@ PDF_VIEWER ?= $(firstword $(shell which okular acroread))
PNG_VIEWER ?= $(firstword $(shell which qiv gimp))
MAIN_TEX ?= $(firstword $(wildcard main.tex *.tex))
MAIN ?= $(patsubst %.tex,$(MAIN_TEX))
OUT_PDF ?= $(notdir $(shell pwd)).pdf
OUT_PDF ?= $(notdir $(shell $(PWD))).pdf
OUT_PNG ?= $(patsubst %.pdf,%.png,$(OUT_PDF))
PNG_WIDTH ?= 200

View file

@ -59,7 +59,7 @@ topdir.mrproper:
topdir.install: prefix.done $(INSTALLED_TOPDIR_FILES)
do-install-links:
@@cwd=`pwd`; \
@@cwd=$(shell $(PWD)); \
echo "o in $(INSTALL_LIBDIR):" ;\
find lib -name '*.so' -o -name '*.so.*' -o -name '*.a' -o -name '*.dll' | \
$(SED) 's%^\./%%' | \