X-Git-Url: https://git.bettercrypto.org/ach-master.git/blobdiff_plain/de8983889b857f3f15bef365e8dcb91559da1e50..d95adbdff8fcb1c0314a1f3b74077723eb61a43d:/tools/dhparams/Makefile diff --git a/tools/dhparams/Makefile b/tools/dhparams/Makefile index 0633a0f..0f96767 100644 --- a/tools/dhparams/Makefile +++ b/tools/dhparams/Makefile @@ -1,9 +1,22 @@ INFILES = $(wildcard *.txt) -OUTFILES = $(patsubst %.txt, %.pem, $(INFILES)) +PEMFILES = $(patsubst %.txt, %.pem, $(INFILES)) +OPENSSHFILES = $(patsubst %.txt, %.openssh, $(INFILES)) +OUTFILES = $(PEMFILES) $(OPENSSHFILES) moduli.openssh .DELETE_ON_ERROR: +.PHONY: all clean + all: $(OUTFILES) %.pem: %.txt gen_pkcs3 `perl parse.pl $<` > $@ + +%.openssh: %.txt + sh openssh-modulus.sh $< > $@ + +moduli.openssh: $(OPENSSHFILES) + cat $^ > $@ + +clean: + rm -f $(OUTFILES)