Revision 2f5f6722 modules/NUCLEO-F103RB/Makefile

View differences:

modules/NUCLEO-F103RB/Makefile
112 112
# Project, target, sources and paths                                           #
113 113
#                                                                              #
114 114

  
115
# Absolute path to the project
116
PROJECT_PATH := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
117

  
115 118
# Define project name here
116
PROJECT := $(patsubst $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))..)/%,%,$(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
119
PROJECT := $(patsubst $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))..)/%,%,$(PROJECT_PATH))
117 120

  
118 121
# Target settings.
119 122
MCU = cortex-m3
......
123 126
CHIBIOS    := $(AMIROOS_KERNEL)
124 127
CONFDIR    := .
125 128
ifeq ($(BUILDDIR),)
126
  BUILDDIR := ./build
129
  BUILDDIR := $(PROJECT_PATH)/build
127 130
endif
128 131
DEPDIR     := $(dir $(BUILDDIR)).dep
129 132
AMIROOS    := ../..

Also available in: Unified diff