From e35ae4816964cb1ae97cfe03461bfe29d773bc18 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 11 Jun 2009 16:35:45 -0400 Subject: [PATCH] add "versionfile" target to create etc/version for --version support --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5