File vhba-pwd.diff of Package vhba-kmp

From: Jan Engelhardt <jengelh@inai.de>
Date: 2012-05-08 22:51:09 +0200

build: fix incorrect use of $(PWD)

With out-of-tree builds, I am getting this warning:

date: /usr/src/linux-3.1.10-1.9/vhba.c: No such file or directory

So use the proper directory.

---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: vhba-module-20120422/Makefile
===================================================================
--- vhba-module-20120422.orig/Makefile
+++ vhba-module-20120422/Makefile
@@ -1,7 +1,7 @@
-VHBA_VERSION = $(shell date -r $(PWD)/vhba.c +%Y%m%d)
+VHBA_VERSION = $(shell date -r ${src}/vhba.c +%Y%m%d)
 PACKAGE = vhba-module-$(VHBA_VERSION)
 
-EXTRA_CFLAGS += -DVHBA_VERSION=\"$(VHBA_VERSION)\" -I$(PWD) -Werror
+EXTRA_CFLAGS += -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror
 
 obj-m += vhba.o
 
openSUSE Build Service is sponsored by