Ver código fonte

Stripped diff for makefile

This patch allows one to run make outside the source tree
with make -f <makefile>.

Signed-off-by: wolfra <wolfra@users.sf.net>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Nigel Croxon 7 anos atrás
pai
commit
15bcddc996
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -36,7 +36,8 @@
 
 VERSION = 3.0.6
 
-SRCDIR = $(shell pwd)
+MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
+SRCDIR = $(dir $(MKFILE_PATH))
 
 VPATH = $(SRCDIR)