Skip to content

Commit

Permalink
Tweak PWD in the Makefile to be more specific
Browse files Browse the repository at this point in the history
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
Beirdo committed Dec 4, 2010
1 parent 0f077c2 commit 42a3c6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/Makefile
Expand Up @@ -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)

Expand Down

0 comments on commit 42a3c6f

Please sign in to comment.