While migrating the samples to use ${CT_TOP_DIR}/build as base for the build directories, the Makefile rules stoped working.

This is because 'all' depends on 'build', which does exist, and make believes there's noting to do.
Work this around by using a rule named '_ct_build' instead of plain 'build'.
This commit is contained in:
Yann E. MORIN" 2007-04-10 15:49:38 +00:00
parent b426a71b53
commit cc0082c508

View File

@ -8,7 +8,7 @@ export PROJECTVERSION=0.0.1
export CT_TOP_DIR=$(shell pwd)
.PHONY: all
all: build
all: _ct_build
HOST_CC = gcc -funsigned-char
@ -33,7 +33,7 @@ include $(CT_TOP_DIR)/tools/Makefile
@test -f .config
# Actual build
build: .config
_ct_build: .config
@$(CT_TOP_DIR)/scripts/crosstool.sh
.PHONY: distclean