Don't give MFLAGS to make explicitly.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 9 May 2017 18:59:52 +0000 (20:59 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 9 May 2017 18:59:52 +0000 (20:59 +0200)
The option given to the upper most make call are already given as
MAKEFLAGS on recursive calls to make. So there is no need to give them
explicitly.

Makefile
config.mk
src/Makefile

index 74bc6b8..e56e528 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,15 +32,15 @@ uninstall:
 clean: $(SRCDIR).subdir-clean
 
 sandbox:
-       $(Q)$(MAKE) $(MFLAGS) RUNPREFIX=$(CURDIR)/sandbox/usr PREFIX=/usr DESTDIR=./sandbox install
+       $(Q)$(MAKE) RUNPREFIX=$(CURDIR)/sandbox/usr PREFIX=/usr DESTDIR=./sandbox install
 
 runsandbox: sandbox
        sandbox/usr/bin/vimb
 
 %.subdir-all:
-       $(Q)$(MAKE) $(MFLAGS) -C $*
+       $(Q)$(MAKE) -C $*
 
 %.subdir-clean:
-       $(Q)$(MAKE) $(MFLAGS) -C $* clean
+       $(Q)$(MAKE) -C $* clean
 
 .PHONY: all options install uninstall clean sandbox runsandbox
index d09d8e6..3a4964e 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -40,4 +40,3 @@ EXTLDFLAGS  = $(shell pkg-config --libs webkit2gtk-4.0) -shared
 CFLAGS     += $(shell pkg-config --cflags $(LIBS))
 CFLAGS     += ${CPPFLAGS}
 LDFLAGS    += $(shell pkg-config --libs $(LIBS))
-MFLAGS      = --no-print-directory
index f60d2ce..7f037c6 100644 (file)
@@ -35,9 +35,9 @@ scripts/scripts.h: $(JSFILES) $(CSSFILES)
        $(Q)$(CC) $(CFLAGS) -c -o $@ $<
 
 %.subdir-all: config.h
-       $(Q)$(MAKE) $(MFLAGS) -C $*
+       $(Q)$(MAKE) -C $*
 
 %.subdir-clean:
-       $(Q)$(MAKE) $(MFLAGS) -C $* clean
+       $(Q)$(MAKE) -C $* clean
 
 .PHONY: all clean