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.
This commit is contained in:
Michal Kubecek 2018-04-02 15:31:34 +02:00
parent 625084e96a
commit 77a6966b97
1 changed files with 5 additions and 2 deletions

View File

@ -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%% *};\