glibc/timezone
Joseph Myers a5f891ac8d Consistently include Makeconfig after defining subdir.
In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I
noted it was necessary to add includes of Makeconfig early in various
subdirectory makefiles for the tests-special variable settings added
by that patch to be conditional on configuration information.  No-one
commented on the general question there of whether Makeconfig should
always be included immediately after the definition of subdir.

This patch implements that early inclusion of Makeconfig in each
directory (which is a lot easier than consistent placement of includes
of Rules).  Includes are added if needed, or moved up if already
present.  Subdirectory "all:" targets are removed, since Makeconfig
provides one.

There is potential for further cleanups I haven't done.  Rules and
Makerules have code such as

ifneq   "$(findstring env,$(origin headers))" ""
headers :=
endif

to override to empty any value of various variables that came from the
environment.  I think there is a case for Makeconfig setting all the
subdirectory variables (other than subdir) to empty to ensure no
outside value is going to take effect if a subdirectory fails to
define a variable.  (A list of such variables, possibly out of date
and incomplete, is in manual/maint.texi.)  Rules and Makerules would
give errors if Makeconfig hadn't already been included, instead of
including it themselves.  The special code to override values coming
from the environment would then be obsolete and could be removed.

Tested x86_64, including that installed binaries are identical before
and after the patch.

	* argp/Makefile: Include Makeconfig immediately after defining
	subdir.
	* assert/Makefile: Likewise.
	* benchtests/Makefile: Likewise.
	* catgets/Makefile: Likewise.
	* conform/Makefile: Likewise.
	* crypt/Makefile: Likewise.
	* csu/Makefile: Likewise.
	(all): Remove target.
	* ctype/Makefile: Include Makeconfig immediately after defining
	subdir.
	* debug/Makefile: Likewise.
	* dirent/Makefile: Likewise.
	* dlfcn/Makefile: Likewise.
	* gmon/Makefile: Likewise.
	* gnulib/Makefile: Likewise.
	* grp/Makefile: Likewise.
	* gshadow/Makefile: Likewise.
	* hesiod/Makefile: Likewise.
	* hurd/Makefile: Likewise.
	(all): Remove target.
	* iconvdata/Makefile: Include Makeconfig immediately after
	defining subdir.
	* inet/Makefile: Likewise.
	* intl/Makefile: Likewise.
	* io/Makefile: Likewise.
	* libio/Makefile: Likewise.
	(all): Remove target.
	* locale/Makefile: Include Makeconfig immediately after defining
	subdir.
	* login/Makefile: Likewise.
	* mach/Makefile: Likewise.
	(all): Remove target.
	* malloc/Makefile: Include Makeconfig immediately after defining
	subdir.
	(all): Remove target.
	* manual/Makefile: Include Makeconfig immediately after defining
	subdir.
	* math/Makefile: Likewise.
	* misc/Makefile: Likewise.
	* nis/Makefile: Likewise.
	* nss/Makefile: Likewise.
	* po/Makefile: Likewise.
	(all): Remove target.
	* posix/Makefile: Include Makeconfig immediately after defining
	subdir.
	* pwd/Makefile: Likewise.
	* resolv/Makefile: Likewise.
	* resource/Makefile: Likewise.
	* rt/Makefile: Likewise.
	* setjmp/Makefile: Likewise.
	* shadow/Makefile: Likewise.
	* signal/Makefile: Likewise.
	* socket/Makefile: Likewise.
	* soft-fp/Makefile: Likewise.
	* stdio-common/Makefile: Likewise.
	* stdlib/Makefile: Likewise.
	* streams/Makefile: Likewise.
	* string/Makefile: Likewise.
	* sunrpc/Makefile: Likewise.
	(all): Remove target.
	* sysvipc/Makefile: Include Makeconfig immediately after defining
	subdir.
	* termios/Makefile: Likewise.
	* time/Makefile: Likewise.
	* timezone/Makefile: Likewise.
	(all): Remove target.
	* wcsmbs/Makefile: Include Makeconfig immediately after defining
	subdir.
	* wctype/Makefile: Likewise.

libidn/ChangeLog:
	* Makefile: Include Makeconfig immediately after defining subdir.

localedata/ChangeLog:
	* Makefile: Include Makeconfig immediately after defining subdir.
	(all): Remove target.

nptl/ChangeLog:
	* Makefile: Include Makeconfig immediately after defining subdir.

nptl_db/ChangeLog:
	* Makefile: Include Makeconfig immediately after defining subdir.
2014-02-26 23:12:03 +00:00
..
africa Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
antarctica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
asia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
australasia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
backward Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
checktab.awk Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
etcetera Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
europe Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
factory Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
ialloc.c Update tzcode to 2012i. 2012-11-09 21:20:57 +00:00
iso3166.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
leapseconds Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
Makefile Consistently include Makeconfig after defining subdir. 2014-02-26 23:12:03 +00:00
northamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
pacificnew Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
private.h Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
README Use glibc version information in zic and zdump. 2012-11-10 00:31:20 +00:00
scheck.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
simplebackw
solar87 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar88 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar89 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
southamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
systemv Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
test-tz.c 2006-01-10 Roland McGrath <roland@redhat.com> 2006-01-10 20:37:36 +00:00
tst-timezone.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tzfile.h Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
tzselect.ksh tzselect: stop requiring ksh 2014-02-08 06:47:58 -05:00
yearistype Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
zdump.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
zic.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
zone.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00

The files
	zic.c zdump.c ialloc.c scheck.c tzfile.h
	private.h tzselect.ksh checktab.awk
come from the tzcode package by Arthur David Olson et.al.

The files
	africa antarctica asia australasia europe
	northamerica southamerica pacificnew etcetera factory
	backward systemv solar87 solar88 solar89
	iso3166.tab zone.tab leapseconds yearistype
come from the tzdata package by Arthur David Olson et.al.

Please check the ChangeLog files in the top level directory for the
version of the tzcode and tzdata packages.

These packages may be found at ftp://ftp.iana.org/tz/releases/.  Commentary
should be addressed to tz@iana.org.