glibc/hurd
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
..
hurd Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
alloc-fd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
catch-exc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
catch-signal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
compat-20.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ctty-input.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ctty-output.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Depend
dtable.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
exc2signal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
faultexc.defs
fchroot.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fd-close.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fd-read.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fd-write.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fopenport.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
get-host.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdport.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
geteuids.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getumask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurd-raise.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurd.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdauth.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdchdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdexec.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdfault.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdfault.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdfchdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdhost.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdinit.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
hurdioctl.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdkill.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdlookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdmalloc.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
hurdmalloc.h
hurdmsg.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdpid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdports.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdprio.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdrlimit.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdselect.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdsig.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdsock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdstartup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hurdstartup.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
intern-fd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
intr-msg.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
intr-rpc.defs Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
intr-rpc.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
longjmp-ts.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lookup-at.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lookup-retry.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
msgportdemux.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
new-fd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Notes
openport.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
path-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pid2task.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
port2fd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
port-cleanup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ports-get.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ports-set.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
preempt-sig.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
privports.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
report-wait.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
set-host.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setauth.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
seteuids.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
siginfo.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigunwind.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
task2pid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
thread-cancel.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
thread-self.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
trampoline.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Versions Remove obsolete SHLIB_COMPAT conditionalization in Versions files. 2014-02-22 01:19:45 -08:00
vpprintf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
xattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00