This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm using CodeComposer 6.1.1.
I've been trying to add a simple rmdir command to my clean command. At the moment my clean command uses the standard gmake clean target.
I would like to still do gmake clean, but also remove an additional externally generated directory, how do i do this.
I tried addingWhat I'v
what i've tried already:
adding:
-I my/folder/path clean_external"
to my clean ccommand, then including a makefile at "my/folder/path that had the target clean_external , but gmake just gave me the error that it couldn't find the make target.
am i close? any ideas?
Thanks
Matt
Matt,
The auto-generated makefile for a Managed CCS build contains this line at the end of the file:
-include ../makefile.targets
By default this is not used by the TI build environment, but you could create a makefile.targets that contains rules for additional make targets and place the file in the top-level folder of the project. This wiki section touches a bit on this subject.
For example, I created a makefile.targets file containing this:
myclean:
-$(RM) "main.asm"
-@echo 'Finished my custom clean
I then modified the Build->Behavior tab in CCS to add "myclean" in addition to the default clean.
Now when I select "Clean Project", I see the following output in the CCS console which confirms that is performing the default clean as well as the custom myclean rule.
**** Clean-only build of configuration Debug for project test_f28377D ****
"C:\\CCStudio_v6.1.1.00022\\ccsv6\\utils\\bin\\gmake" -k clean myclean
DEL /F "test_f28377D.out" "test_f28377D.hex"
DEL /F "main.pp"
DEL /F "main.obj"
'Finished clean'
' '
DEL /F "main.asm"
'Finished my custom clean'
Can you try something similar and let us know if it works?