Skip to content

Commit

Permalink
wmakeCollect: Name the object makefiles based on the object path
Browse files Browse the repository at this point in the history
Ensures the order of compilation relates to the location of the source files
  • Loading branch information
Henry Weller committed Jul 5, 2016
1 parent e20c1ac commit 98d5ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wmake/wmakeCollect
Expand Up @@ -125,12 +125,12 @@ then
# Make sure directories exist
mkdir -p $collectDir

# Unique file name for makefile for the current target
file="$collectDir/$$_${RANDOM}"

# The current target
object="${@: -1:1}"

# Create a unique name for the makefile from the object path
file=$collectDir/${object////_}

# Add the current target to the list of objects
echo "OBJECTS += $object" >> $file

Expand Down

0 comments on commit 98d5ee3

Please sign in to comment.