henry_flower: A melancholy wolf (Default)
henry_flower ([personal profile] henry_flower) wrote2015-12-20 02:19 am
Entry tags:

Look kids how cool I am, hehe: path.modified := path.orig := $(PATH) path = $(if $(1),$(realpath $(

Look kids how cool I am, hehe:

path.modified :=
path.orig := $(PATH)
path = $(if $(1),$(realpath $(toolchain.dir))/bin:$(path.orig),$(path.orig))

# alright
export PATH = $(call path,$(path.modified))

$(toolchain.target):
# puts important staff in $(toolchain.dir)
# ...

$(config.target): $(toolchain.target) $(unpack.target) | $(buildroot)
# TA-DA!
$(eval path.modified:=1)
cd $(buildroot) && $(realpath $(src.dir))/configure --host=$(TARGET)
touch $@

#afoolwiththetoolchain


Permalink: https://plus.google.com/115290581164606462017/posts/5YvDzYsKtKR