From: Adrian Likins Date: Thu, 11 Jun 2009 20:35:45 +0000 (-0400) Subject: add "versionfile" target to create etc/version for --version support X-Git-Tag: v0.28~26 X-Git-Url: https://pwan.org/git/?a=commitdiff_plain;h=e35ae4816964cb1ae97cfe03461bfe29d773bc18;p=certmaster.git add "versionfile" target to create etc/version for --version support --- diff --git a/Makefile b/Makefile index ec8cad3..652b5db 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,12 @@ INITDIR = init-scripts all: rpms +versionfile: + echo "version:" $(VERSION) > etc/version + echo "release:" $(RELEASE) >> etc/version + echo "source build date:" $(DATE) >> etc/version + echo "git commit:" $(shell git log -n 1 --pretty="format:%H") >> etc/version + echo "git date:" $(shell git log -n 1 --pretty="format:%cd") >> etc/version manpage: pod2man --center="certmaster-request" --release="" ./docs/certmaster-request.pod | gzip -c > ./docs/certmaster-request.1.gz