[riot-notifications] [RIOT-OS/RIOT] make: introduce $(CLEAN) (#11829)

Gaëtan Harter notifications at github.com
Fri Jul 12 12:26:35 CEST 2019


cladmi commented on this pull request.



> @@ -80,6 +80,13 @@ MAKEOVERRIDES += $(foreach v,$(__DIRECTORY_VARIABLES),$(v)=$($(v)))
 # trailing '/' is important when RIOTPROJECT == CURDIR
 BUILDRELPATH ?= $(patsubst $(RIOTPROJECT)/%,%,$(CURDIR)/)
 
+# Set CLEAN to "clean" if that target was requested.
+# Allowis recipes to be run after cleaning, without triggering it implicitly:
+#
+# all: | $(CLEAN)
+#
+CLEAN=$(filter clean, $(MAKECMDGOALS))

This is not bash, we use spaces around equals.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11829#pullrequestreview-261180602
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190712/d3a16010/attachment.html>


More information about the notifications mailing list