mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
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:
parent
b426a71b53
commit
cc0082c508
4
Makefile
4
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user