build: fix race condition on make clean without preceeding normal make

This commit is contained in:
Matthias Schiffer 2016-04-27 20:27:26 +02:00
parent d8092bce62
commit 9b63127aa5

View File

@ -298,7 +298,8 @@ prepare-target: $(GLUON_OPKG_KEY).pub
$(target_prepared_stamp):
+$(GLUONMAKE_EARLY) prepare-target
maybe-prepare-target: $(GLUON_OPKG_KEY).pub $(target_prepared_stamp)
maybe-prepare-target: $(target_prepared_stamp)
+$(GLUONMAKE_EARLY) $(GLUON_OPKG_KEY).pub
$(BUILD_DIR)/.prepared: Makefile
@mkdir -p $$(dirname $@)