glibc/nis
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
..
nss_compat Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nss_nis Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nss_nisplus Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
rpcsvc Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Depend
Makefile Consistently include Makeconfig after defining subdir. 2014-02-26 23:12:03 +00:00
Versions * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend 2008-05-10 23:27:39 +00:00
libnsl.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_add.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_addmember.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_call.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_callback.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_checkpoint.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_clone_dir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_clone_obj.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_clone_res.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_creategroup.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_defaults.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_destroygroup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_domain_of.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_domain_of_r.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_error.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_error.h * nis/nis_error.c: Remove table of strings. Use position 2006-05-11 20:29:20 +00:00
nis_file.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_findserv.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_free.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_getservlist.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_hash.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_intern.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_ismember.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_local_names.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_lookup.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_mkdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_modify.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_ping.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_print.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_print_group_entry.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_remove.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_removemember.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_rmdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_server.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_subr.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_table.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_util.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_verifygroup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nis_xdr.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
nis_xdr.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nisplus-parser.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss Implement new mode for NIS passwd.adjunct.byname table. 2010-04-07 07:37:39 -07:00
nss-default.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss-nis.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss-nis.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss-nisplus.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss-nisplus.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
yp_xdr.c Set reasonable limits for xdr_requests. 2013-05-30 22:01:22 -04:00
ypclnt.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
ypupdate_xdr.c More copyright changes. 2010-09-01 05:10:04 -07:00