From 8c4b009f23729f68cf210e1b17527792c4eb9ffc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 24 Nov 2014 00:25:02 -0500 Subject: Makefile.br: Set hostprogs-y based on MAKECMDGOALS --- diff --git a/Makefile.br b/Makefile.br index 10e4ccf..440f02d 100644 --- a/Makefile.br +++ b/Makefile.br @@ -11,6 +11,22 @@ include Makefile $(obj)/.depend: $(wildcard *.h *.c) $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || : +ifeq ($(MAKECMDGOALS),xconfig) +hostprogs-y := qconf +endif +ifeq ($(MAKECMDGOALS),gconfig) +hostprogs-y := gconf +endif +ifeq ($(MAKECMDGOALS),menuconfig) +hostprogs-y := mconf +endif +ifeq ($(MAKECMDGOALS),config) +hostprogs-y := conf +endif +ifeq ($(MAKECMDGOALS),nconfig) +hostprogs-y := nconf +endif + __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m)) host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m))) host-cmulti := $(foreach m,$(__hostprogs),\ -- cgit v0.9.1