Browse files

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 to put
version.cpp in the correct place.
  • Loading branch information...
1 parent 0f077c2 commit 42a3c6f4c65c40b9dcd73272f23bfac379caf2a5 @Beirdo Beirdo committed Dec 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/Makefile
@@ -26,6 +26,10 @@ all: version.cpp subdirs
$(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 $(PWD)

0 comments on commit 42a3c6f

Please sign in to comment.