summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-16 20:09:01 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-16 20:09:01 +0200
commita9a61c97b8e07294a2f362d1ac39a9ece15dc999 (patch)
tree5e9f4d685412fc87278819d4f11ef1ed22feef37 /Makefile
parent2e932fd1f0ea473255313c65425d3a6d4521298a (diff)
parent95c6d7f9eefcac7a3fd042917df15166935d690d (diff)
downloadluaotfload-a9a61c97b8e07294a2f362d1ac39a9ece15dc999.tar.gz
Merge pull request #235 from phi-gamma/master
fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6a552c2..4124a1a 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@ TEXMFROOT = $(shell kpsewhich --var-value TEXMFHOME)
DISTDIR = $(BUILDDIR)/$(NAME)
CTAN_ZIPFILE = $(NAME).zip
+CTAN_ZIPSIG = $(BUILDDIR)/$(CTAN_ZIPFILE).asc
TDS_ZIPFILE = $(NAME).tds.zip
CTAN_ZIP = $(BUILDDIR)/$(CTAN_ZIPFILE)
TDS_ZIP = $(BUILDDIR)/$(TDS_ZIPFILE)
@@ -138,7 +139,7 @@ $(BUILDDIR): /dev/null
mkdir -p $(BUILDDIR)
define make-ctandir
-@$(RM) -rf $(DISTDIR)
+@$(RM) -rf -- $(DISTDIR)
@mkdir -p $(DISTDIR) && cp $(RESOURCES) $(DOCPDF) $(VGND) $(CONFDEMO) $(SOURCE) $(DISTDIR)
endef
@@ -148,6 +149,11 @@ $(CTAN_ZIP): $(DOCS) $(SOURCE) $(TDS_ZIP)
$(make-ctandir)
cd $(BUILDDIR) && zip -r -9 $(CTAN_ZIPFILE) $(TDS_ZIPFILE) $(NAME) >/dev/null
+$(CTAN_ZIPSIG): $(CTAN_ZIP)
+ @echo "Signing package $(CTAN_ZIP)"
+ @$(RM) -- $@
+ @gpg --batch --armor --detach-sign "$(CTAN_ZIP)"
+
define run-install-doc
@mkdir -p $(DOCDIR) && cp -- $(DOCSTATUS) $(VGND) $(CONFDEMO) $(DOCDIR)
@mkdir -p $(SRCDIR) && cp -- $(SRCSTATUS) $(SRCDIR)
@@ -169,7 +175,9 @@ $(TDS_ZIP): $(DOCS) $(ALL_STATUS) check
@cd $(TEXMFROOT) && zip -9 ../$@ -r . >/dev/null
@$(RM) -r -- $(TEXMFROOT)
-.PHONY: install manifest clean mrproper show showtargets
+sign: $(CTAN_ZIPSIG)
+
+.PHONY: install manifest clean mrproper show showtargets check
install: $(ALL_STATUS)
@echo "Installing in '$(TEXMFROOT)'."
@@ -215,6 +223,7 @@ showtargets:
@echo
@echo " tds package a zipball according to the TDS"
@echo " ctan package a zipball for uploading to CTAN"
+ @echo " sign sign zipball"
@echo
# vim:noexpandtab:tabstop=8:shiftwidth=2