From 83a16fca47423b8307efcc39cb1bc8c123a57ac2 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Tue, 1 Feb 2022 11:22:06 +0100 Subject: [PATCH] makefiles: avoid extra "/" when including files from external modules As the `dir` make function considers the last slash as part of the directory-part of a file name, we don't need to add an extra one. --- Makefile.dep | 2 +- Makefile.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.dep b/Makefile.dep index 4b3df3a742..ad9c764824 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -10,7 +10,7 @@ # include external modules dependencies # processed before RIOT ones to be evaluated before the 'default' rules. --include $(EXTERNAL_MODULE_PATHS:%=%/Makefile.dep) +-include $(EXTERNAL_MODULE_PATHS:%=%Makefile.dep) # pull dependencies from sys and drivers include $(RIOTBASE)/sys/Makefile.dep diff --git a/Makefile.include b/Makefile.include index e590eabef9..640e19f150 100644 --- a/Makefile.include +++ b/Makefile.include @@ -578,7 +578,7 @@ include $(RIOTBASE)/sys/Makefile.include -include $(PKG_PATHS:%=%Makefile.include) # include external modules configuration --include $(EXTERNAL_MODULE_PATHS:%=%/Makefile.include) +-include $(EXTERNAL_MODULE_PATHS:%=%Makefile.include) # Deduplicate includes without sorting them # see https://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting