Skip to content

Commit

Permalink
always try to make the build directory if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pechfunk committed Oct 3, 2010
1 parent 073e2f8 commit e1053a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makefile
Expand Up @@ -54,7 +54,7 @@ ifeq (debug,$(findstring debug,$(MAKECMDGOALS)))
USE_CFLAGS = $(CFLAGS_DEBUG)
endif

main: config.h even_in_range $(ALL_O) $(EXTRA_O) build
main: build config.h even_in_range $(ALL_O) $(EXTRA_O) build
@echo $(findstring debug,$(MAKEFLAGS))
@echo "Compiling $@ for $(CPU)..."
$(CC) $(CC_CMACH) $(CFLAGS_PRODUCTION) -o $(BUILD_DIR)/eZChronos.elf $(ALL_O) $(EXTRA_O)
Expand All @@ -78,7 +78,7 @@ $(ALL_S): %.s: %.o config.h include/project.h
# $(CC) -c $(CFLAGS) $< -o $@


debug: even_in_range $(ALL_O)
debug: build even_in_range $(ALL_O)
@echo "Compiling $@ for $(CPU) in debug"
$(CC) $(CC_CMACH) $(CFLAGS_DEBUG) -o $(BUILD_DIR)/eZChronos.dbg.elf $(ALL_O) $(EXTRA_O)
@echo "Convert to TI Hex file"
Expand All @@ -103,7 +103,7 @@ clean:
rm -rf build/*

build:
mkdir build
mkdir -p build

config.h:
python tools/config.py
Expand Down

0 comments on commit e1053a6

Please sign in to comment.