[Scip] Examples makefiles in SCIP may eat all personal data (make clean dangerous)
Tobias Achterberg
achterberg at zib.de
Mon Jan 11 15:35:02 MET 2010
Uuupppss.. that's really BAD! Sorry about this, I guess that is still something that I am
responsible for.
I strongly suggest to use something like
rm -f $(OBJDIR)/*.o
rmdir $(OBJDIR)
instead. I don't think that the $(OBJDIR) will have subdirectories, and I also don't think
that there is anything else than *.o files, so this should be much safer.
Tobias
Martin Bergner wrote:
> Hi all,
>
> when copying and modifying examples from the SCIP examples directory,
> one will end up with a very dangerous Makefile. If the SCIP directory
> link is not set correctly, a make clean will call rm -rf /* with the
> users permissions, deleting all of the users data.
>
> The SCIP Makefile itself is guarded with the safe rule
>
> .PHONY: clean
> clean:
> ifneq ($(OBJDIR),)
> -rm -rf $(OBJDIR)/*
> endif
>
> instead of
>
> .PHONY: clean
> clean:
> -rm -rf $(OBJDIR)/* $(MAINFILE)
>
> This should be changed in all examples files and you should update your
> custom Makefiles to reflect this change. After I moved my scip
> installation and I forgot to update the changes, I had a two week old
> backup from just before christmas, do you?
>
> Regards,
> Martin
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list