all: rpp-test-sw
$(call rmdir,$(TMP_WORKSPACE))
-RELEASE_PREFIX = rpp-test-sw
include rpp-lib/common.mk
TARGET ?= $(error TARGET variable not defined)
git diff --quiet # Check that the tree is clean
$(UNCRUSTIFY_ALL)
+ifeq (release,$(or $(filter release,$(MAKECMDGOALS)),$(RELEASE_IN_PROGRESS)))
+
+# Evaluate this block also by all sub-makes
+export RELEASE_IN_PROGRESS = release
+
+$(eval $(call release_rules,rpp-test-sw))
+
release: $(RELEASE_BASENAME).zip
RELEASE_TARGET = $(TARGET)
lib:
$(MAKE) -C rpp-lib/build/$(RELEASE_TARGET)/Debug
+endif