1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

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

This commit is contained in:
hogliux 2017-05-09 12:56:31 +01:00
parent d6b1796361
commit 3716bc6f66

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