summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gprof/po/Make-in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/gprof/po/Make-in')
-rw-r--r--contrib/binutils/gprof/po/Make-in4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/binutils/gprof/po/Make-in b/contrib/binutils/gprof/po/Make-in
index 0552db1..833d418 100644
--- a/contrib/binutils/gprof/po/Make-in
+++ b/contrib/binutils/gprof/po/Make-in
@@ -70,7 +70,9 @@ INSTOBJEXT = @INSTOBJEXT@
.po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
- && rm -f $$file && $(GMSGFMT) -o $$file $<
+ && test -w $$file \
+ && (rm -f $$file && $(GMSGFMT) -o $$file $< ) \
+ || echo "$$file is not writable"
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
OpenPOWER on IntegriCloud