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
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}