yet another dependency fix

Aaron Ucko (UCKO@vax1.rockhurst.edu)
Thu, 15 Feb 1996 21:30:30 -0600 (CST)


My last fix failed to cover all circumstances in which files depend on
include/linux/modversions.h. This one should get everything, and therefore
(AFAIK) cause the kernel's dependency information to be 100% reliable.

-- Aaron Ucko (ucko@vax1.rockhurst.edu; finger for PGP public key) | httyp!
"That's right," he said. "We're philosophers. We think, therefore we am."
-- Terry Pratchett, _Small Gods_ | Geek Code 3.1 [for explanation, finger
hayden@mankato.msus.edu]: GCS/M/S/C d- s: a18 C++(+++)>++++ UL++>++++ P++
L++>+++++ E- W(-) N++(+) o+ K- w--- O M@ V-(--) PS++(+++) PE- Y(+) PGP(+) t(+)
!5 X-- R(-) tv-@ b++(+++) DI+ !D-- G++(+++) e->+++++(*) h!>+ r-(--)>+++ y?

--- Makefile.dist Wed Feb 14 16:48:37 1996
+++ Makefile Thu Feb 15 20:58:28 1996
@@ -275,7 +275,10 @@
endif

modules: include/linux/version.h
- @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i CFLAGS="$(CFLAGS) $(MODFLAGS)" modules; done
+ @set -e; \
+ for i in $(SUBDIRS); \
+ do $(MAKE) -C $$i CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules; \
+ done

modules_install:
@( \
--- Rules.make.dist Fri Feb 9 21:28:37 1996
+++ Rules.make Wed Feb 14 22:33:28 1996
@@ -172,9 +172,17 @@
$(LX_OBJS) $(OX_OBJS): $(TOPDIR)/include/linux/modversions.h
$(CC) $(CFLAGS) -DMODVERSIONS -DEXPORT_SYMTAB -c $(@:.o=.c)

-dep fastdep $(M_OBJS): $(TOPDIR)/include/linux/modversions.h
+dep fastdep: $(TOPDIR)/include/linux/modversions.h

endif
+$(M_OBJS): $(TOPDIR)/include/linux/modversions.h
+ifdef MAKING_MODULES
+$(O_OBJS) $(L_OBJS): $(TOPDIR)/include/linux/modversions.h
+endif
+# This is needed to ensure proper dependency for multipart modules such as
+# fs/ext.o. (Otherwise, not all subobjects will be recompiled when
+# version information changes.)
+
endif

#