Skip to content
Snippets Groups Projects
Commit 98d5ee3b authored by Henry Weller's avatar Henry Weller
Browse files

wmakeCollect: Name the object makefiles based on the object path

Ensures the order of compilation relates to the location of the source files
parent e20c1ac6
Branches
Tags
1 merge request!60Merge foundation
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment