diff --git a/wmake/wcleanAll b/wmake/wcleanAll index f4dfaf5f3a5443c3fc65037cebf7d100f59ddf05..e26504b7e051b784b7e9d1acd0c49551561eb67d 100755 --- a/wmake/wcleanAll +++ b/wmake/wcleanAll @@ -61,7 +61,8 @@ do esac done -[ -d bin -a -d src ] || usage "not in the project top level directory" +[ "$PWD" = "$WM_PROJECT_DIR" ] \ + || usage "Not in the project top-level directory" echo "Removing platforms/sub-directories" diff --git a/wmake/wrmdep b/wmake/wrmdep index cea58c901a922178ec5bef2eac970da66fc0414e..7853279684d6b66c1ff4fd34ee25e7cf4c56d086 100755 --- a/wmake/wrmdep +++ b/wmake/wrmdep @@ -190,7 +190,8 @@ oldFolders) updateMode) - [ -d bin -a -d src ] || usage "Not in the project top-level directory" + [ "$PWD" = "$WM_PROJECT_DIR" ] \ + || usage "Not in the project top-level directory" echo "Purging all dep files that relate to files that no longer exist..." fileNameList=$(find -L src applications -name '*.[CHL]' -type l \