[Scip] Examples makefiles in SCIP may eat all personal data (make clean dangerous)

Stefan Heinz heinz at zib.de
Mon Jan 11 17:23:51 MET 2010


Hi Martin,

we are very sorry for the trouble you had with the project Makefile. I changed 
in all projects to:

.PHONY: clean
clean:
ifneq ($(OBJDIR),)
                -rm -rf $(OBJDIR)/*.
endif
                -rm -f $(MAINFILE)

and update the tarballs on the scip homepage as well as on the zibopt 
homepage.

Sorry for the trouble
Stefan

On Monday 11 January 2010 15:21:33 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
> 

-- 
Stefan Heinz

Zuse Institute Berlin (ZIB)
Takustr. 7
14195 Berlin
Germany

Phone:	[++49] (30) 841 85 - 428
Fax: 	[++49] (30) 841 85 - 269
www:     http://www.zib.de/heinz


More information about the Scip mailing list