Fix the definition of abspath for gnu make < 3.81
[kai/samba.git] / source4 / build / make / templates.mk
index d4973e7dd6c968a16709122ee8f59710fe4b092e..e89122b443d707df42accb4a0f7fa8ef399c03ff 100644 (file)
@@ -120,7 +120,7 @@ uninstallplugins::
 endef
 
 # abspath for older makes
-abspath := $(shell cd $(1); pwd)
+abspath = $(shell cd $(dir $(1)); pwd)/$(notdir $(1))
 
 # Install a binary
 # Arguments: path to binary to install