[Genabel-commits] r943 - branches/ProbABEL-pacox/v.0.1-3

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Aug 28 09:16:26 CEST 2012


Author: lckarssen
Date: 2012-08-28 09:16:26 +0200 (Tue, 28 Aug 2012)
New Revision: 943

Modified:
   branches/ProbABEL-pacox/v.0.1-3/Makefile
Log:
Small fix to Makefile in pacoxphfix branch. Now the make also works if the directory name is already in the 'correct' format.

Modified: branches/ProbABEL-pacox/v.0.1-3/Makefile
===================================================================
--- branches/ProbABEL-pacox/v.0.1-3/Makefile	2012-08-27 16:38:39 UTC (rev 942)
+++ branches/ProbABEL-pacox/v.0.1-3/Makefile	2012-08-28 07:16:26 UTC (rev 943)
@@ -35,14 +35,16 @@
 
 clean:
 	rm -f $(BINDIR)/* $(SRCDIR)/*~ $(SRCDIR)/*.o $(DOCDIR)/*~ *.zip *.tar.gz
-	rm -f ../$(BUILDDIRLNK)
+	if [ -h ../$(BUILDDIRLNK) ]; then rm ../$(BUILDDIRLNK); fi
 
 linux_distrib: clean
-	ln -s $(PWD) ../$(BUILDDIRLNK)
+	if [ ! -d ../$(BUILDDIRLNK) ]; then ln -s $(PWD) ../$(BUILDDIRLNK); fi
 	cd .. ; tar --exclude-vcs -czhvf ProbABEL_$(VERSION).tar.gz $(BUILDDIRLNK)
-	rm ../$(BUILDDIRLNK)
+	if [ -h ../$(BUILDDIRLNK) ]; then rm ../$(BUILDDIRLNK); fi
 
 win_distrib: all
-	cd .. ; zip -r9 ProbABEL_$(VERSION)_win.zip ProbABEL
+	if [ ! -d ../$(BUILDDIRLNK) ]; then ln -s $(PWD) ../$(BUILDDIRLNK); fi
+	cd .. ; zip -r9 ProbABEL_$(VERSION)_win.zip $(BUILDDIRLNK)
+	if [ -h ../$(BUILDDIRLNK) ]; then rm ../$(BUILDDIRLNK); fi
 
 distrib: linux_distrib clean win_distrib clean



More information about the Genabel-commits mailing list