Add MAKEFLAGS option to keep output of parallel builds readable.
authorDavid Griffith <dave@661.org>
Tue, 31 Jul 2018 08:03:45 +0000 (01:03 -0700)
committerDavid Griffith <dave@661.org>
Tue, 31 Jul 2018 08:45:30 +0000 (01:45 -0700)
Makefile

index 1ddebcff7deb025ab33c51608a92b20a9f314c1f..9b20d09d933d38bc3f4000f84102d0dd45e69387 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,11 @@ CFLAGS += -D_POSIX_C_SOURCE=200809L
 # These are handy for debugging.
 CFLAGS += -g
 
+# This keeps make(1) output understandable when using -j for parallel
+# building If your version of make(1) can't do parallel builds, comment
+# this out.
+MAKEFLAGS += -Orecurse
+
 # Define where you want Frotz installed
 PREFIX ?= /usr/local
 MANDIR ?= $(PREFIX)/share/man
@@ -82,6 +87,7 @@ CURSES ?= -lncurses
 
 export CC
 export CFLAGS
+export MAKEFLAGS
 export AR
 export RANLIB
 export PREFIX