aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eb844f5..c09c52b 100644
--- a/Makefile
+++ b/Makefile
@@ -92,11 +92,11 @@ ifeq ($(STRIPBIN),y)
strip $(DESTDIR)$(BINDIR)/$(PROJ)
endif
cp $(PROJ).1 $(DESTDIR)$(MAN1DIR)
+ $(CHOWN) root:root $(DESTDIR)$(MAN1DIR)/$(PROJ).1
+ chmod 644 $(DESTDIR)$(MAN1DIR)/$(PROJ).1
ifeq ($(GZIPMAN),y)
gzip -9 $(DESTDIR)$(MAN1DIR)/$(PROJ).1
endif
- $(CHOWN) root:root $(DESTDIR)$(MAN1DIR)/$(PROJ).1
- chmod 644 $(DESTDIR)$(MAN1DIR)/$(PROJ).1
cp README $(DESTDIR)$(DOCDIR)
chmod 644 $(DESTDIR)$(DOCDIR)/README
$(CHOWN) $(OWNER):$(GROUP) $(DESTDIR)$(DOCDIR)/README
@@ -106,5 +106,9 @@ push: all man html
git commit -m'auto-regenerate man/html pages' || true
git push
+# don't forget to: git config tar.tar.xz.command "xz -c"
+release:
+ git tag -a -m'$(VERSION) release' $(VERSION)
+ git archive --prefix=$(PROJ)-$(VERSION)/ -o $(PROJ)-$(VERSION).tar.xz $(VERSION)
.PHONY: all man clean html install push