]> git.proxmox.com Git - proxmox-i18n.git/commitdiff
Makefile: auto initialize submodules
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 3 Oct 2017 13:11:39 +0000 (15:11 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 3 Oct 2017 13:11:39 +0000 (15:11 +0200)
Makefile

index 9d4403d12ce30732f56bf762ffefb9e563fef435..443cafc6649a4ad0d6c6bb998a0f83afbb33aa75 100644 (file)
--- 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}