summary refs log tree commit diff
path: root/time/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-13 20:18:37 +0000
committerRoland McGrath <roland@gnu.org>1996-05-13 20:18:37 +0000
commit45086082a06454cd1a2d1b91390a04a726b3ac28 (patch)
treebca301220a6cea3381442f874322bdf827d2dcd1 /time/Makefile
parentd929664ab5b621e8990d797769e4233a5caf3791 (diff)
downloadglibc-45086082a06454cd1a2d1b91390a04a726b3ac28.tar.gz
glibc-45086082a06454cd1a2d1b91390a04a726b3ac28.tar.xz
glibc-45086082a06454cd1a2d1b91390a04a726b3ac28.zip
* time/Makefile (zonenames): Target removed.
	(extra-objs): Remove it from here.
	Include the z.* files directly instead of including zonenames; use
	`-include' to not complain befre they exist.

	* sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
	$(common-objpfx) instead of $(objpfx).
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