summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-11-24 00:25:02 (EST)
committer P. J. McDermott <pj@pehjota.net>2014-11-24 00:25:02 (EST)
commit8c4b009f23729f68cf210e1b17527792c4eb9ffc (patch)
tree5e559cb4b3585893d1314497f6d53afecba028ef
parent5552d318b415357edf2d17dabfa19280a3680c8f (diff)
Makefile.br: Set hostprogs-y based on MAKECMDGOALS
-rw-r--r--Makefile.br16
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),\