Index: Rules =================================================================== RCS file: /egcs/carton/cvsfiles/libc/Rules,v retrieving revision 1.77 diff -u -r1.77 Rules --- Rules 1998/05/08 23:59:48 1.77 +++ Rules 1998/05/25 23:24:54 @@ -175,6 +179,11 @@ .PHONY: generated generated: $(addprefix $(common-objpfx),$(common-generated)) \ $(addprefix $(objpfx),$(generated)) + +# Target required by the Hurd to ensure that all the MiG-generated +# headers are in place before building a subdirectory. +.PHONY: before-compile +before-compile: $(before-compile) define o-iterator-doit $(common-objpfx)empty$o: $(common-objpfx)empty.c $(before-compile); Index: sysdeps/mach/hurd/Makefile =================================================================== RCS file: /egcs/carton/cvsfiles/libc/sysdeps/mach/hurd/Makefile,v retrieving revision 1.65 diff -u -r1.65 Makefile --- Makefile 1998/05/08 20:56:05 1.65 +++ Makefile 1998/05/25 23:26:03 @@ -47,13 +47,13 @@ # These are all the generated headers that includes. before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process) $(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): - $(MAKE) -C $(..)hurd generated no_deps=t + $(MAKE) -C $(..)hurd before-compile no_deps=t endif # Hurd profil.c includes this file, so give a rule to make it. ifeq ($(subdir),gmon) $(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c: - $(MAKE) -C $(..)mach generated no_deps=t + $(MAKE) -C $(..)mach before-compile no_deps=t endif