From 2a503dfbdfb3fbced8970d06c524bb45d4c79fa1 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 18 Apr 2016 00:25:32 +0000 Subject: [PATCH] MAYBE? rules: turn off legacy make support. Pros: + about 5% speedup on multicore builds. + wayyyy less noise in make -d output if you're debugging Cons: - boilerplate cruft noise in the makefile. --- examples/rules.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/rules.mk b/examples/rules.mk index 10a83d07..081887e0 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -25,6 +25,19 @@ Q := @ NULL := 2>/dev/null endif +# Now, before we go any further, let's enter the 21st century. +# Clear make's built in fortran module pascal yacc idontevenwhat +.SUFFIXES: +# And add in things we might maybe actually use. +.SUFFIXES: .c .h .o .cxx .elf .bin .list .lss +# And now turn off all implicit rules support long dead version control +%: %,v +%: RCS/%,v +%: RCS/% +%: s.% +%: SCCS/s.% + + ############################################################################### # Executables