aboutsummaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-29 22:02:04 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-29 22:02:04 -0800
commit1123c9779f062aba02961f93d848a6e0c530c23a (patch)
treee5a9707827dd64dc906f9b3bf9a8ee8381ce7780 /windows
parentee6cf6ad6b37a3b7c694566090d8a4cb5300c6e5 (diff)
downloadpandoc-1123c9779f062aba02961f93d848a6e0c530c23a.tar.gz
Improve Makefile for signing windows release candidates.
Diffstat (limited to 'windows')
-rw-r--r--windows/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/windows/Makefile b/windows/Makefile
index 0a442fbef..354c1b37c 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -1,5 +1,10 @@
-version?=$(shell grep '^[Vv]ersion:' ../pandoc.cabal | awk '{print $$2;}')
+UNSIGNED=$(wildcard pandoc-*-UNSIGNED.msi)
+SIGNED=$(patsubst %-UNSIGNED.msi, %.msi, $(UNSIGNED))
-pandoc-$(version)-windows-%.msi: pandoc-windows-%-UNSIGNED.msi
- osslsigncode sign -pkcs12 $$HOME/Private/SectigoCodeSigning.exp2023.p12 -in $< -i http://johnmacfarlane.net/ -t http://timestamp.comodoca.com/ -out $@ -askpass
+all: $(SIGNED)
+
+.PHONY: all
+
+pandoc-%.msi: pandoc-%-UNSIGNED.msi
+ osslsigncode sign -pkcs12 $$HOME/Private/SectigoCodeSigning.exp2023.p12 -in $< -i http://johnmacfarlane.net/ -t http://timestamp.comodoca.com/ -out $@ -askpass && rm $<