summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-22 11:07:43 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-22 11:07:43 +0000
commitc7fb104134d05d442d8ee6a64af93e5d72b2ab35 (patch)
tree1d915eb87da47eb9c76899e4089ada6394819e8a /Makefile
parent2aa7afdf0bba060226ada5d78582b09ae3a8c510 (diff)
downloadmupdf-c7fb104134d05d442d8ee6a64af93e5d72b2ab35.tar.xz
Delete library archives before running ar to prevent build skew when files have been moved around.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index efa9cd5b..bade0597 100644
--- a/Makefile
+++ b/Makefile
@@ -46,14 +46,14 @@ ifneq "$(verbose)" ""
GENFILE_CMD = $(firstword $^) $@ $(wordlist 2, 999, $^)
CC_CMD = $(CC) -o $@ -c $< $(CFLAGS)
LD_CMD = $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
-AR_CMD = ar cru $@ $^
+AR_CMD = rm -f $@ && ar cru $@ $^
else
GENFILE_CMD = @ echo GENFILE $@ && $(firstword $^) $@ $(wordlist 2, 999, $^)
CC_CMD = @ echo CC $@ && $(CC) -o $@ -c $< $(CFLAGS)
LD_CMD = @ echo LD $@ && $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
-AR_CMD = @ echo AR $@ && ar cru $@ $^
+AR_CMD = @ echo AR $@ && rm -f $@ && ar cru $@ $^
endif
@@ -384,4 +384,3 @@ install: $(OBJDIR) $(GENDIR) $(MUPDF_LIB) $(APPS)
install $(APPS) $(prefix)/bin
install $(MUPDF_LIB) $(prefix)/lib
install $(MUPDF_HDR) $(prefix)/include
-