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.
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
CFLAGS += $(shell pkg-config --cflags $(LIBS))
CFLAGS += ${CPPFLAGS}
LDFLAGS += $(shell pkg-config --libs $(LIBS))
-MFLAGS = --no-print-directory
$(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