Browse Source

Linux: Fixed an issue where the Makefile generated by the Projucer would not trigger recompilation when files were changed (Fixes #202)

tags/2021-05-28
hogliux 8 years ago
parent
commit
3716bc6f66
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      extras/Projucer/Source/Project Saving/jucer_ProjectExport_Make.h

+ 18
- 1
extras/Projucer/Source/Project Saving/jucer_ProjectExport_Make.h View File

@@ -590,6 +590,23 @@ private:
<< newLine;
}
void writeIncludeLines (OutputStream& out) const
{
const int n = targets.size();
for (int i = 0; i < n; ++i)
{
if (MakefileTarget* target = targets.getUnchecked (i))
{
if (target->type == ProjectType::Target::AggregateTarget)
continue;
out << "-include $(OBJECTS_" << target->getTargetVarName()
<< ":%.o=%.d)" << newLine;
}
}
}
void writeMakefile (OutputStream& out) const
{
out << "# Automatically generated makefile, created by the Projucer" << newLine
@@ -670,7 +687,7 @@ private:
<< "\t-$(V_AT)$(STRIP) --strip-unneeded $(JUCE_OUTDIR)/$(TARGET)" << newLine
<< newLine;
out << "-include $(OBJECTS:%.o=%.d)" << newLine;
writeIncludeLines (out);
}
String getArchFlags (const BuildConfiguration& config) const


Loading…
Cancel
Save