about summary refs log tree commit diff
path: root/time/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'time/Makefile')
-rw-r--r--time/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/time/Makefile b/time/Makefile
index 8feb377dd4..bb8bd20d48 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -23,7 +23,7 @@ subdir	:= time
 
 headers	:= time.h sys/time.h sys/timeb.h timebits.h
 distribute := tzfile.h private.h scheck.c ialloc.c yearistype
-extra-objs = scheck.o ialloc.o zonenames $(tzfiles:%=z.%)
+extra-objs = scheck.o ialloc.o $(tzfiles:%=z.%)
 
 routines	:= offtime asctime clock ctime difftime gmtime	\
 		   localtime mktime strftime time tzset tzfile	\
@@ -46,12 +46,12 @@ all: # Make this the default target; it will be defined in Rules.
 
 include ../Makeconfig	# Get objpfx defined so we can use it below.
 
-# zonenames uses this variable.
+# z.* use this variable.
 define nl
 
 
 endef
-include $(objpfx)zonenames
+-include $(addprefix $(objpfx)z.,$(tzfiles))
 
 # Make these absolute file names.
 installed-localtime-file := $(firstword $(filter /%,$(localtime-file)) \
@@ -86,11 +86,6 @@ $(tzfiles:%=$(objpfx)z.%): $(objpfx)z.%: % Makefile
 	 echo 'zonenames := $$(zonenames) $$($*-zones)'			;\
 	) > $@.new
 	mv $@.new $@
-$(objpfx)zonenames: Makefile
-	(for file in $(tzfiles); do \
-	   echo "include \$$(objpfx)z.$$file"; \
-	 done) > $@.new
-	mv $@.new $@
 
 .PHONY: echo-zonenames
 echo-zonenames: zonenames