aboutsummaryrefslogtreecommitdiff
path: root/time/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'time/Makefile')
-rw-r--r--time/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/time/Makefile b/time/Makefile
index 7eeedd4e53..e29a50b4d6 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -121,8 +121,13 @@ target-zone-flavor = $(filter /posix /right, \
ifdef localtime
$(installed-localtime-file): $(zonedir)/$(localtime) $(objpfx)zic
$(make-target-directory)
- if test -r $@; then echo Site timezone NOT reset to Factory.; else \
- ln -s -f $< $@; fi
+ if test -r $@; then \
+ echo Site timezone NOT reset to Factory.; \
+ else \
+ rm -f $@T; \
+ $(SHELL) $(common-objpfx)$(..)rellns-sh $< $@T; \
+ mv -f $@T $@; \
+ fi
endif
ifdef posixrules
$(installed-posixrules-file): $(zonedir)/$(posixrules) $(objpfx)zic