aboutsummaryrefslogtreecommitdiff
path: root/gprof/po/Make-in
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-02 08:15:00 +0000
committerNick Clifton <nickc@redhat.com>2002-05-02 08:15:00 +0000
commitd3427997ad759f705f99611018da19512ca2bbb0 (patch)
treedfabeaf38799b2a97adad8cfd944975e739c436d /gprof/po/Make-in
parenteb7f1c487a7d496bf9f6443ab2dae90257a8398c (diff)
downloadgdb-d3427997ad759f705f99611018da19512ca2bbb0.zip
gdb-d3427997ad759f705f99611018da19512ca2bbb0.tar.gz
gdb-d3427997ad759f705f99611018da19512ca2bbb0.tar.bz2
Do not attempt to create a .gmo file if the sources are read-only.
Diffstat (limited to 'gprof/po/Make-in')
-rw-r--r--gprof/po/Make-in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gprof/po/Make-in b/gprof/po/Make-in
index 0552db1..833d418 100644
--- a/gprof/po/Make-in
+++ b/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 \