diff options
-rw-r--r-- | Makefile.br | 16 |
1 files changed, 16 insertions, 0 deletions
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),\ |