From: bangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Sun, 26 Aug 2007 21:39:39 +0000 (+0000)
Subject: Delete archive file to avoid packing the same object files into it many times if... 
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29300c9d7b29b6fae331a092d03c0eed35dd0be3;p=dealii-svn.git

Delete archive file to avoid packing the same object files into it many times if it isn't deleted before writing into it.

git-svn-id: https://svn.dealii.org/trunk@15047 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/lib/Makefile b/deal.II/lib/Makefile
index 31b758e251..f031dc066c 100644
--- a/deal.II/lib/Makefile
+++ b/deal.II/lib/Makefile
@@ -82,6 +82,7 @@ else
   # same for debug and optimized mode.
   libpetscall.g$(static-lib-suffix): $(xlib.g)
 	@echo "======================debug============= Linking library:   libpetscall.g$(static-lib-suffix)"
+	@rm -f $@
 	@rm -rf .ar_tmp
 	@mkdir .ar_tmp; cd .ar_tmp; \
 	 for arfile in $(xlib.g) ; do \
@@ -95,6 +96,7 @@ else
 
   libpetscall$(static-lib-suffix): $(xlib.o)
 	@echo "======================optimized========= Linking library:   libpetscall$(static-lib-suffix)"
+	@rm -f $@
 	@rm -rf .ar_tmp
 	@mkdir .ar_tmp; cd .ar_tmp; \
 	 for arfile in $(xlib.o) ; do \