summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/data/locale/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/data/locale/Makefile b/usr/src/data/locale/Makefile
index 99ee6a60ef..284f5b0cfa 100644
--- a/usr/src/data/locale/Makefile
+++ b/usr/src/data/locale/Makefile
@@ -146,8 +146,10 @@ locale/%/$(DTIME): locale/%/stamp
$(ROOTDATA): $(ROOTLOCDIRS) $(ROOTCATDIRS) $(DATA)
$(RM) $@
- -$(CP) $(@:$(ROOTLIB)/%=%) $@
- $(CHMOD) -f 0444 $@
+ if [[ -f $(@:$(ROOTLIB)/%=%) ]]; then \
+ $(CP) $(@:$(ROOTLIB)/%=%) $@; \
+ $(CHMOD) -f 0444 $@ ; \
+ fi
%.mo: %.po
$(MSGFMT) -o $@ $<