summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-08-30 19:01:07 +0200
committerAlejandro Colomar <alx@kernel.org>2023-08-30 19:01:07 +0200
commit613ce42cdc9063007385c202c4da369bdbc58ca3 (patch)
treec96d841c7cd4d26fdba90917cb406d673d563777 /GNUmakefile
parenta350da35cbafb7611fa33e750c8ca4d4239b1f61 (diff)
*.mk: Don't include the main Makefile
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile13
1 files changed, 2 insertions, 11 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b944753f7..97163ed0f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -21,10 +21,6 @@
########################################################################
-ifndef MAKEFILE_INCLUDED
-MAKEFILE_INCLUDED := 1
-
-
SHELL := /usr/bin/env bash -Eeuo pipefail
@@ -124,11 +120,9 @@ help:
.SECONDEXPANSION:
-MK := \
- $(srcdir)/GNUmakefile \
- $(wildcard $(addprefix $(MAKEFILEDIR)/, *.mk */*.mk */*/*.mk))
+MK := $(wildcard $(addprefix $(MAKEFILEDIR)/, *.mk */*.mk */*/*.mk))
include $(MK)
-$(MK):: ;
+$(srcdir)/GNUMakefile $(MK):: ;
.PHONY: help-variables
@@ -215,6 +209,3 @@ nothing:;
.DELETE_ON_ERROR:
-
-
-endif #include guard