Browse Source

Fix makefile misgeneration when CDPATH is set (fixes #1212)

--HG--
branch : minor
Bart van Strien 8 years ago
parent
commit
bf83629b4c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      platform/unix/genmodules

+ 3 - 3
platform/unix/genmodules

@@ -24,7 +24,7 @@ handlemodule()
 genmodules()
 {
 	LOVEROOT="$(pwd)"
-	cd src
+	cd ./src
 
 	printf "liblove${love_amsuffix}_la_SOURCES = \\\\\n"
 	sourcefind "common" | sed "s/^/    /"
@@ -34,7 +34,7 @@ genmodules()
 	local -a modulelist=()
 	local -a liblist=()
 
-	cd modules
+	cd ./modules
 	prefix="modules/"
 	for module in *; do
 		flags+=("module-$module")
@@ -140,7 +140,7 @@ endif
 
 # Compile scripts
 .lua.lua.h:
-	cd scripts; \
+	cd ./scripts; \
 	\$(LUA_EXECUTABLE) auto.lua \$<
 
 # libLÖVE