[Scip] Examples makefiles in SCIP may eat all personal data (make clean dangerous)
Martin Bergner
mbergner at mathematik.tu-darmstadt.de
Mon Jan 11 15:21:33 MET 2010
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
More information about the Scip
mailing list