summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2008-07-09 09:25:34 +0300
committerGuillem Jover <guillem@hadrons.org>2008-07-09 09:25:34 +0300
commitba7ece7791d2617de8693a877b517260c51f5dc7 (patch)
tree6d0f7297167fd3d79768e324c4d9cee3484d6ff0
parent84d311d03872a1c18305abe8218c0a3d3f5434d2 (diff)
downloadlibbsd-ba7ece7791d2617de8693a877b517260c51f5dc7.tar.gz
Create an armored detached signature on 'make dist'
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 74016bc..30a7ed9 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ LIB_VERSION_MAJOR = 0
LIB_VERSION_MINOR = 0
TAR_NAME = $(LIB_NAME)-$(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR)
+TAR_FILE := $(TAR_NAME).tar.gz
LIB_DIST := Makefile Versions libbsd.pc
@@ -72,8 +73,9 @@ $(LIB_SHARED): $(LIB_SHARED_OBJS)
dist: clean
mkdir $(TAR_NAME)
cp -a include src man $(LIB_DIST) $(TAR_NAME)
- tar czf $(TAR_NAME).tar.gz $(TAR_NAME)
+ tar czf $(TAR_FILE) $(TAR_NAME)
rm -rf $(TAR_NAME)
+ gpg -a -b $(TAR_FILE)
install: libs man
mkdir -p $(DESTDIR)/usr/lib/ $(DESTDIR)/lib/