summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-06 13:47:16 +0200
committerErich Eckner <git@eckner.net>2018-10-15 09:37:11 +0200
commit283d0b35794703676edc8df5626dfe51070745d8 (patch)
treed05502aeb05e6a66073312b079f58db429a1dea9
parent8183bd4ae1644cc8e5c2d3cf4e74a9397dba76d0 (diff)
downloadasp32-283d0b35794703676edc8df5626dfe51070745d8.tar.xz
Makefile: upload target new, rest refurbished
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2cb29cc..beb3758 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PACKAGE_NAME = asp32
-VERSION = v3
+VERSION = $(shell git describe --exact-match)
VDEVEL = $(shell test -d .git && git describe --dirty 2>/dev/null)
ifneq "$(VDEVEL)" ""
@@ -42,8 +42,8 @@ doc: $(MANPAGES)
man/%: man/%.txt Makefile
$(V_GEN) a2x -d manpage \
-f manpage \
- -a manversion="$(PACKAGE_NAME) $(VERSION)" \
- -a manmanual="$(PACKAGE_NAME) manual" $<
+ -a manversion="asp32 $(VERSION)" \
+ -a manmanual="asp32 manual" $<
check: $(BINPROGS)
@for f in $(BINPROGS); do bash -O extglob -n $$f; done
@@ -59,7 +59,10 @@ install: all
install -Dm644 $(ZSH_COMPLETION) $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_asp32
dist:
- git archive --format=tar --prefix=$(PACKAGE_NAME)-$(VERSION)/ $(VERSION) | gzip -9 > $(PACKAGE_NAME)-$(VERSION).tar.gz
- gpg --detach-sign --use-agent $(PACKAGE_NAME)-$(VERSION).tar.gz
+ git archive --format=tar --prefix=asp32-$(VERSION)/ $(VERSION) | gzip -9 > asp32-$(VERSION).tar.gz
+ gpg --detach-sign --use-agent asp32-$(VERSION).tar.gz
-.PHONY: all clean install uninstall dist
+upload:
+ scp asp32-$(VERSION).tar.gz asp32-$(VERSION).tar.gz.sig sources.archlinux32.org:sources/
+
+.PHONY: all clean install uninstall dist upload