summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-09-17 19:46:27 -0400
committerDave Reisner <dreisner@archlinux.org>2019-01-17 12:47:59 -0500
commit43f37ce943d81dd001ec25627e163af73d02f4c5 (patch)
tree3d73860080f3313d35df7adbf7c09e6408075970
parent81faae5cd21d7932030cf5faf8c3eb76745a2af7 (diff)
downloadasp32-43f37ce943d81dd001ec25627e163af73d02f4c5.tar.xz
tidy up Makefile
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8616b7f..cbf4e7c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PACKAGE_NAME = asp
-VERSION = $(shell git describe --dirty 2>/dev/null)
+VERSION := $(shell git describe --dirty 2>/dev/null)
PREFIX = /usr/local
@@ -35,7 +35,8 @@ edit = $(V_GEN) m4 -P $@.in | sed 's/@ASP_VERSION@/$(VERSION)/' >$@ && chmod go-
doc: $(MANPAGES)
man/%: man/%.txt Makefile
- $(V_GEN) a2x -d manpage \
+ $(V_GEN) a2x \
+ -d manpage \
-f manpage \
-a manversion="$(PACKAGE_NAME) $(VERSION)" \
-a manmanual="$(PACKAGE_NAME) manual" $<
@@ -53,8 +54,4 @@ install: all
install -Dm644 $(BASH_COMPLETION) $(DESTDIR)$(PREFIX)/share/bash-completion/completions/asp
install -Dm644 $(ZSH_COMPLETION) $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_asp
-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
-
.PHONY: all clean install uninstall dist