Rules.make improvement

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Tue, 17 Jun 1997 14:33:08 +0200


Hi!

There may be something seriously wrong with the following patch, but
it seems to me like it is not. This patch divides number of makes by
two, speeding make where there's nothing to make by ~25%. I think that
it is good think - why to use twice as make processes as neccessary?

Diff against 2.1.43.

--- clean/Rules.make Wed Apr 16 19:10:17 1997
+++ linux/Rules.make Sun Jun 15 11:59:20 1997
@@ -35,12 +35,6 @@
unexport MOD_LIST_NAME

#
-# Get things started.
-#
-first_rule: sub_dirs
- $(MAKE) all_targets
-
-#
# Common rules
#

@@ -59,7 +53,13 @@
#
#
#
-all_targets: $(O_TARGET) $(L_TARGET)
+all_targets: sub_dirs $(O_TARGET) $(L_TARGET)
+
+
+#
+# Get things started.
+#
+first_rule: all_targets

#
# Rule to compile a set of .o files into one .o file

--
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).