glibc/time
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
..
sys Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
adjtime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
alt_digit.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
asctime.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
bug-asctime_r.c [BZ #1468] 2005-10-14 17:20:58 +00:00
bug-asctime.c [BZ #1460] 2005-10-14 15:17:40 +00:00
bug-getdate1.c * time/bug-getdate1.c (do_test): Don't use century values which 2007-12-12 18:23:00 +00:00
bug-mktime1.c [BZ #2821] 2006-09-09 16:56:29 +00:00
clock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
clocktest.c Make local functions static. 2000-12-27 20:26:07 +00:00
ctime_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ctime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
datemsk * time/Makefile (tst-getdate-ENV): Add TZDIR to environment. 2001-07-18 09:43:36 +00:00
Depend * time/Makefile (tst-getdate-ENV): Add TZDIR to environment. 2001-07-18 09:43:36 +00:00
difftime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dysize.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
era.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ftime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getitimer.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gettimeofday.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gmtime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lc-time-cleanup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
localtime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Makefile Consistently include Makeconfig after defining subdir. 2014-02-26 23:12:03 +00:00
mktime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
offtime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setitimer.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
settimeofday.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
stime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
strftime_l.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
strftime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
strptime_l.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
strptime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
test_time.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
time.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
time.h Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
timegm.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
timespec_get.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst_wcsftime.c
tst-ftime_l.c (main): Also test strftime with uselocale. 2002-08-31 20:15:31 +00:00
tst-getdate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-mktime2.c Testsuite #include fixes. 2012-04-02 22:31:32 +02:00
tst-mktime3.c * time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC, 2004-12-02 22:16:35 +00:00
tst-mktime.c [BZ #473, BZ #487] 2004-11-01 00:21:39 +00:00
tst-posixtz.c * time/tzset.c (__tzset_parse_tz): Use correct string when parsing 2009-03-10 15:23:46 +00:00
tst-strftime.c (do_test): Add tests for - flag. 2003-05-11 22:41:23 +00:00
tst-strptime2.c * time/strptime_l.c (__strptime_internal): Handle 'z' to set 2005-04-27 04:33:01 +00:00
tst-strptime3.c [BZ #3944] 2007-02-09 01:33:57 +00:00
tst-strptime-whitespace.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-strptime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tzfile.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
tzset.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
Versions Sort Versions files 2013-02-17 16:34:04 +01:00
wcsftime_l.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wcsftime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00