From 42a3c6f4c65c40b9dcd73272f23bfac379caf2a5 Mon Sep 17 00:00:00 2001 From: Gavin Hurlbut Date: Sat, 4 Dec 2010 00:18:48 -0800 Subject: [PATCH] Tweak PWD in the Makefile to be more specific If the Makefile is started with "make -C mythtv" from a Makefile another level up, $PWD is still seeming to be set from the top level Makefile. This forces a reset of $PWD from the shell at this level, causing version.sh to put version.cpp in the correct place. --- mythtv/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mythtv/Makefile b/mythtv/Makefile index 903def06c91..68e4fdb53b6 100644 --- a/mythtv/Makefile +++ b/mythtv/Makefile @@ -26,6 +26,10 @@ all: version.cpp subdirs config.mak: $(error run configure to create $@) +# Override PWD in case this is run from a makefile at a higher level with +# make -C mythtv +PWD := $(shell pwd) + version.cpp: libs/libmythdb/mythversion.h sh version.sh $(PWD)