From 42d82cd28afff311be53f5667fd27ff6c5c801ea Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 3 Oct 2017 15:11:39 +0200 Subject: [PATCH] Makefile: auto initialize submodules --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d4403d..443cafc 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,11 @@ PVELOCALEDIR=${DESTDIR}/usr/share/pve-i18n PMG_LANG_FILES=$(patsubst %, pmg-lang-%.js, $(LINGUAS)) PVE_LANG_FILES=$(patsubst %, pve-lang-%.js, $(LINGUAS)) -all: +all: | submodule .PHONY: deb deb: $(DEBS) -$(DEBS): +$(DEBS): | submodule rm -rf dest mkdir dest rsync -a debian dest @@ -27,6 +27,10 @@ $(DEBS): lintian ${PMG_I18N_DEB} lintian ${PVE_I18N_DEB} +.PHONY: submodule +submodule: + test -f "proxmox-mailgateway-gui/Makefile" || git submodule update --init + .PHONY: install install: ${PMG_LANG_FILES} ${PVE_LANG_FILES} install -d ${PMGLOCALEDIR} -- 2.39.2