Permalink
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 version.sh to put
version.cpp in the correct place.
  • Loading branch information...
1 parent 11ee9c5 commit dc4868a1f149322deaa98a44ef8b1739400d49bf @Beirdo Beirdo committed Dec 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/Makefile
View
@@ -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)

0 comments on commit dc4868a

Please sign in to comment.