mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 574741: Always add main-build to .PHONY.
Addendum to 0436516
(Bug 573502): The main-build target now always
exists, not just when there is a pre-build step, so it must always be
marked as .PHONY.
Change-Id: I478222bcc319c516a6e116f710d8382346b5ded5
Signed-off-by: Christian Walther <walther@indel.ch>
This commit is contained in:
parent
1278baf052
commit
ce521345e0
32 changed files with 33 additions and 33 deletions
|
@ -53,6 +53,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) test1DepCalc2
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -53,6 +53,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) test1DepCalc3
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -53,6 +53,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) test1DepCalcPreBuild
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -66,6 +66,6 @@ clean:
|
|||
-$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) test12.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -66,6 +66,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C++_DEPS)$(EXECUTABLES)$(CC_DEPS)$(C_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) test20.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -52,6 +52,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) MBS2dot1.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -67,6 +67,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C++_DEPS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) Test21CXX
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS) liblinkedFolder.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS) liblinkedLib.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -66,6 +66,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) testResCfg
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS) testSingleExe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -63,6 +63,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) libtestDoubleSO.so
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -45,6 +45,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(MODS)$(EXECUTABLES) CDTFortranTest1.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -47,6 +47,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(MODS)$(EXECUTABLES) CDTFortranTest2
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -45,6 +45,6 @@ clean:
|
|||
-$(RM) $(ASSIGNTOOPTION_EXECUTABLE_OUTPUTS)$(OBJS) TestATO.out
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -61,6 +61,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(FINAL)$(C_DEPS)$(CS)$(EXECUTABLES) TestCopyandDeploy
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -63,6 +63,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) DeleteFile
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) inputTypeOption
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(ARCHIVES) liblinkedFolder.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(ARCHIVES)$(C_DEPS) liblinkedLib.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -66,6 +66,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) multiResConfig
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) rcbsBasicTest
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) singleFileExe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -52,6 +52,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) testwithspaces.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -67,6 +67,6 @@ clean:
|
|||
|
||||
secondary-outputs: $(TEST30_1_GNU_SO_CJPEG_OUTPUT_OUTPUTS)
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -64,6 +64,6 @@ clean:
|
|||
-$(RM) $(TAROUT)$(TERMINAL__DUMMY_OUTPUT__OUTPUTS)$(LOGFILE) test30_2.tmp
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) test.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -45,6 +45,6 @@ clean:
|
|||
-$(RM) $(TAR_FILE_OUTPUTS)$(BAR_FILES) testMacroSupportInBuildDefinitions.tar
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -51,6 +51,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C_DEPS)$(LIBRARIES) libtwoFileSO.SOS
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -74,6 +74,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C++_DEPS)$(EXECUTABLES)$(CC_DEPS)$(C_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) test_40
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -74,6 +74,6 @@ clean:
|
|||
-$(RM) $(OBJS)$(C++_DEPS)$(EXECUTABLES)$(CC_DEPS)$(C_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) test_40
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
|
|
@ -1544,9 +1544,9 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
|
|||
}
|
||||
|
||||
// Add all the needed dummy and phony targets
|
||||
buffer.append(".PHONY: all clean dependents"); //$NON-NLS-1$
|
||||
buffer.append(".PHONY: all clean dependents").append(WHITESPACE).append(MAINBUILD); //$NON-NLS-1$
|
||||
if (prebuildStep.length() > 0) {
|
||||
buffer.append(WHITESPACE).append(MAINBUILD).append(WHITESPACE).append(PREBUILD);
|
||||
buffer.append(WHITESPACE).append(PREBUILD);
|
||||
}
|
||||
if (postbuildStep.length() > 0) {
|
||||
buffer.append(WHITESPACE).append(POSTBUILD);
|
||||
|
|
Loading…
Add table
Reference in a new issue