From 77a6966b97977844f4932e84f8ffcbe8e0dc5acf Mon Sep 17 00:00:00 2001 From: Michal Kubecek Date: Mon, 2 Apr 2018 15:31:34 +0200 Subject: [PATCH] misc: warn if branch is marked as retired When "make" or "make install is issued on branch marked as retired, warn user about the fact. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c742efd7..eda283dc 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ DEPMOD = /sbin/depmod .PHONY: FORCE subdirs $(SUBDIRS) clean tarballs -subdirs: $(SUBDIRS) +subdirs: retiredcheck $(SUBDIRS) FORCE: @@ -28,7 +28,10 @@ gitcleancheck: gitcheck @git diff --exit-code HEAD >/dev/null 2>&1 \ || echo "Warning: tarballs will reflect current HEAD (no uncommited changes)" -install: $(MODFILES) +retiredcheck: + @test -f RETIRED && cat RETIRED || true + +install: retiredcheck $(MODFILES) @for f in $(MODFILES); do \ mver=$$($(MODINFO) -F vermagic $$f);\ mver=$${mver%% *};\