Skip to content

Commit

Permalink
misc: warn if branch is marked as retired
Browse files Browse the repository at this point in the history
When "make" or "make install is issued on branch marked as retired, warn
user about the fact.
  • Loading branch information
mkubecek committed Apr 2, 2018
1 parent 625084e commit 77a6966
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DEPMOD = /sbin/depmod

.PHONY: FORCE subdirs $(SUBDIRS) clean tarballs

subdirs: $(SUBDIRS)
subdirs: retiredcheck $(SUBDIRS)

FORCE:

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

0 comments on commit 77a6966

Please sign in to comment.