Revision 6b1000b5

View differences:

modules/DiWheelDrive_1-1/Makefile
298 298
#                                                                              #
299 299

  
300 300
# all and its dependencies
301
BUILDDIR = ./build
301
ifeq ($(BUILDDIR),)
302
	BUILDDIR = ./build
303
endif
302 304
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 305
include $(RULESPATH)/rules.mk
304 306

  
modules/LightRing_1-0/Makefile
298 298
#                                                                              #
299 299

  
300 300
# all and its dependencies
301
BUILDDIR = ./build
301
ifeq ($(BUILDDIR),)
302
	BUILDDIR = ./build
303
endif
302 304
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 305
include $(RULESPATH)/rules.mk
304 306

  
modules/Makefile
23 23

  
24 24

  
25 25

  
26
include $(dir $(lastword $(MAKEFILE_LIST)))modules.mk
26
# absolute path to this directory
27
MODULES_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
27 28

  
29
# list of available modules
30
MODULES = $(patsubst $(MODULES_DIR)%/,%,$(sort $(dir $(wildcard $(MODULES_DIR)*/*))))
31

  
32
# set custom build directory, if any
28 33
ifneq ($(BUILDDIR),)
29 34
  export BUILDDIR
30 35
endif
modules/PowerManagement_1-1/Makefile
298 298
#                                                                              #
299 299

  
300 300
# all and its dependencies
301
BUILDDIR = ./build
301
ifeq ($(BUILDDIR),)
302
	BUILDDIR = ./build
303
endif
302 304
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 305
include $(RULESPATH)/rules.mk
304 306

  
modules/STM32F4Discovery/Makefile
298 298
#                                                                              #
299 299

  
300 300
# all and its dependencies
301
BUILDDIR = ./build
301
ifeq ($(BUILDDIR),)
302
	BUILDDIR = ./build
303
endif
302 304
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 305
include $(RULESPATH)/rules.mk
304 306

  
modules/modules.mk
26 26
# absolute path to this directory
27 27
MODULES_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29
# list of available modules
30
MODULES = $(patsubst $(MODULES_DIR)%/,%,$(sort $(dir $(wildcard $(MODULES_DIR)*/*))))
31

  
32 29
# include paths
33 30
MODULESINC = $(MODULES_DIR)
34 31

  

Also available in: Unified diff