summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2020-08-05 19:49:22 -0700
committerAndrew G. Morgan <morgan@kernel.org>2020-08-05 19:54:52 -0700
commit2a892954b4ce2ac46af3470b8d2b65166e85e028 (patch)
tree5e7248118406037d271df1ff0ccd6d92e664eea6 /Makefile
parent40c452c877353e2f1a439c5fd1fc4fde3f8fa15c (diff)
downloadlibcap2-2a892954b4ce2ac46af3470b8d2b65166e85e028.tar.gz
When doing a distclean validate that the tree is fully committed.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 03d7748..c5ca17b 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,7 @@ distclean: clean
@echo "CONFIRM Go package cap has right version dependency on cap/psx:"
for x in $$(find . -name go.mod); do grep -F -v "module" $$x | fgrep "kernel.org/pub/linux/libs/security/libcap" > /dev/null || continue ; grep -F "v$(GOMAJOR).$(VERSION).$(MINOR)" $$x > /dev/null && continue ; echo "$$x is not updated to v$(GOMAJOR).$(VERSION).$(MINOR)" ; exit 1 ; done
@echo "ALL go.mod files updated"
+ test -z "$$(git status -s)"
release: distclean
cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar --exclude patches libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR)