it's nicer as the build system is more coherent, i.e., I can do `make
install` from inside src and it actually works ;)
Use an atomic target for the build directory, else we can easily get
bogus builds.
Further use only one type of GNU make variable flavors, not both $()
and ${} mixed..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
url = https://github.com/acmesh-official/acme.sh.git
url = https://github.com/acmesh-official/acme.sh.git
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
+ACME_SUBMODULE="src/acme.sh"
all: $(DEB)
.PHONY: submodule
submodule:
all: $(DEB)
.PHONY: submodule
submodule:
- test -d $(DNSAPI) || git submodule update --init --recursive
+ test -d ${ACME_SUBMODULE}/README.md || 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
+${BUILDDIR}: src debian submodule
+ rm -rf ${BUILDDIR}.tmp
+ cp -a src ${BUILDDIR}.tmp
+ cp -a debian ${BUILDDIR}.tmp/
+ echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE
+ mv ${BUILDDIR}.tmp ${BUILDDIR}
-deb: $(DEB)
-$(DEB): $(BUILDDIR)
- cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
- lintian $(DEB)
+deb: ${DEB}
+${DEB}: ${BUILDDIR}
+ cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
+ lintian ${DEB}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
lintian ${DSC}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
lintian ${DSC}
-dinstall: $(DEB)
- dpkg -i $(DEB)
+dinstall: ${DEB}
+ dpkg -i ${DEB}
- rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz
+ rm -rf ${BUILDDIR} ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.gz
.PHONY: upload
upload: ${DEB}
.PHONY: upload
upload: ${DEB}
+++ /dev/null
-Subproject commit d437d6fde95dc7368d4fa76c05648a8dd4cbe69e
.PHONY: install
install:
install -D -m 0744 proxmox-acme ${DESTDIR}${ACMEDIR}/proxmox-acme
.PHONY: install
install:
install -D -m 0744 proxmox-acme ${DESTDIR}${ACMEDIR}/proxmox-acme
- for f in ${ACME_SOURCES}; do install -D -m 0644 $$f ${DESTDIR}${ACMEDIR}/$$f; done
+ for f in ${ACME_SOURCES}; do install -D -m 0644 acme.sh/$$f ${DESTDIR}${ACMEDIR}/$$f; done
install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE
install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE/ACME
for f in ${LIB_SOURCES}; do install -D -m 0644 PVE/$$f ${DESTDIR}${PERLDIR}/PVE/$$f; done
install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE
install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE/ACME
for f in ${LIB_SOURCES}; do install -D -m 0644 PVE/$$f ${DESTDIR}${PERLDIR}/PVE/$$f; done
--- /dev/null
+Subproject commit d437d6fde95dc7368d4fa76c05648a8dd4cbe69e