Hi Giovanni,
I use vim to edit my files, so it create me backup files such as main.c~ for example.
I saw that when running the command make clean, those file are not deleted.
Can we add a rule to the makefile to do that?
Thanks,
Theo.
Makefile rule Topic is solved
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Makefile rule
Hi,
I prefer for the makefile to delete only what it generated during a build, people could want to keep their backups.
You could add a new rule fullclean to your Makefile after the inclusion of rules.mk.
Giovanni
I prefer for the makefile to delete only what it generated during a build, people could want to keep their backups.
You could add a new rule fullclean to your Makefile after the inclusion of rules.mk.
Giovanni
Re: Makefile rule
@Theodore ATEBA
As Giovanni said it is not make's task. I use version control facilities for such job ("git clean -xdf" in my case).
SVN also able to clean working copy but I can not remember exact command.
As Giovanni said it is not make's task. I use version control facilities for such job ("git clean -xdf" in my case).
SVN also able to clean working copy but I can not remember exact command.
Re: Makefile rule
Hi Barthess,
Good alternative to the Makefile rule to clean the working directory.
I'm used to Git so I can use this possibility. I don't know SVN but don't worry
.
Thanks for the clue.
Theo
Good alternative to the Makefile rule to clean the working directory.
I'm used to Git so I can use this possibility. I don't know SVN but don't worry
Thanks for the clue.
Theo