]> git.proxmox.com Git - proxmox-acme.git/blobdiff - Makefile
Refactor extract_callenge for code reuse.
[proxmox-acme.git] / Makefile
index 5ed0522d9708a4e745094f473ba030bb3bf9397d..9d2655a5e2c3793acf07ca17b94048d4931b860c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,18 @@ GITVERSION:=$(shell git rev-parse HEAD)
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
+DNSAPI="acme.sh/dnsapi"
+
 all: $(DEB)
 
-$(BUILDDIR): src debian
+.PHONY: submodule
+submodule:
+       test -d $(DNSAPI) || git submodule update --init --recursive
+
+$(BUILDDIR): src debian submodule
        rm -rf $(BUILDDIR)
        rsync -a src/ debian $(BUILDDIR)
+       rsync -a $(DNSAPI) $(BUILDDIR)
        # remove if repository exists
        # echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE