aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-01-06 21:11:05 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-01-18 03:10:14 +0000
commitc76d1e32379835dcc0e66c8874b0a384bf1ac5cf (patch)
treeffa2d098ef19432ccefe3f24bfdac9494d87afaa
parent84d319b2fda958d73a58bf338ee212da772d0cc6 (diff)
downloadklibc-c76d1e32379835dcc0e66c8874b0a384bf1ac5cf.tar.gz
[klibc] Makefile: Add dependencies on $(KLIBCKERNELSRC)
The error message for a missing $(KLIBCKERNELSRC) won't appear unless it's specified as a target or something depends on it. Make the klcc and klibc targets depend on it. Link: https://www.zytor.com/pipermail/klibc/2019-January/004030.html Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cd15149c73ec5..43861355b9643 100644
--- a/Makefile
+++ b/Makefile
@@ -112,10 +112,10 @@ klibc.spec: klibc.spec.in $(KLIBCSRC)/version
sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
# Build klcc - it is the first target
-klcc: $(objtree)/.config
+klcc: $(objtree)/.config $(KLIBCKERNELSRC)
$(Q)$(MAKE) $(klibc)=klcc
-klibc: $(objtree)/.config
+klibc: $(objtree)/.config $(KLIBCKERNELSRC)
$(Q)$(MAKE) $(klibc)=.
test: klibc