summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/maintMakefile b/maintMakefile
index 31e24ae..24dd90c 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -240,3 +240,29 @@ po-check:
diff -u $@-1 $@-2 || exit 1; \
rm -f $@-1 $@-2; \
fi
+
+## ------------------------- ##
+## GNU FTP upload artifacts. ##
+## ------------------------- ##
+
+# This target creates the upload artifacts.
+
+GPG = gpg
+
+DIST_ARCHIVES_SIG = $(addsuffix .sig,$(DIST_ARCHIVES))
+DIST_ARCHIVES_DIRECTIVE = $(addsuffix .directive.asc,$(DIST_ARCHIVES))
+
+sign-dist: $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE)
+
+$(DIST_ARCHIVES_DIRECTIVE): directive.asc
+ cp $< $@
+
+%.sig : %
+ @echo "Signing file '$<':"
+ $(GPG) -o $@ -b $<
+
+directive.asc:
+ @echo "Creating directive file '$@':"
+ @echo 'directory: make' > .directive
+ $(GPG) -o $@ --clearsign .directive
+ @rm -f .directive