apps/wireless Makefiles: Utilize Directory.mk for consistency.

This commit is contained in:
Xiang Xiao 2019-10-01 11:56:42 -06:00 committed by Gregory Nutt
parent 9a27d4a697
commit f7229b24fe
6 changed files with 8 additions and 91 deletions

2
wireless/bluetooth/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/Kconfig

View File

@ -1,10 +0,0 @@
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
menu "Bluetooth applications"
source "$APPSDIR/wireless/bluetooth/btsak/Kconfig"
endmenu # Bluetooth applications

View File

@ -33,38 +33,6 @@
#
############################################################################
-include $(TOPDIR)/.config # Current configuration
MENUDESC = "Bluetooth applications"
# Sub-directories
SUBDIRS = $(dir $(wildcard */Makefile))
all: nothing
.PHONY: nothing context depend clean distclean preconfig
define SDIR_template
$(1)_$(2):
$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
endef
$(foreach SDIR, $(CNTXTDIRS), $(eval $(call SDIR_template,$(SDIR),context)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean)))
nothing:
install:
context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)
clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean)
distclean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean)
preconfig:
-include Make.dep
include $(APPDIR)/Directory.mk

2
wireless/ieee802154/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/Kconfig

View File

@ -1,13 +0,0 @@
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
menu "IEEE 802.15.4 applications"
source "$APPSDIR/wireless/ieee802154/libmac/Kconfig"
source "$APPSDIR/wireless/ieee802154/libutils/Kconfig"
source "$APPSDIR/wireless/ieee802154/i8sak/Kconfig"
source "$APPSDIR/wireless/ieee802154/i8shark/Kconfig"
endmenu #ieee 802.15.4 apps

View File

@ -33,38 +33,6 @@
#
############################################################################
-include $(TOPDIR)/.config # Current configuration
MENUDESC = "IEEE 802.15.4 applications"
# Sub-directories
SUBDIRS = $(dir $(wildcard */Makefile))
all: nothing
.PHONY: nothing context depend clean distclean preconfig
define SDIR_template
$(1)_$(2):
$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
endef
$(foreach SDIR, $(CNTXTDIRS), $(eval $(call SDIR_template,$(SDIR),context)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean)))
nothing:
install:
context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)
clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean)
distclean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean)
preconfig:
-include Make.dep
include $(APPDIR)/Directory.mk