X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=5cce65a6a13549a8593afebfc20def7b4f8855bf;hb=35241008bfb848996d54e0b34bd884bf30d65819;hp=166f7932a6c3553e4a6c8f57998094ee07603af6;hpb=8b0b6db4348a62ae0343d1fa8cad41a1582de09a;p=pmg-gui.git diff --git a/Makefile b/Makefile index 166f793..5cce65a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -PACKAGE=proxmox-mailgateway-gui +PACKAGE=pmg-gui PKGVER=1.0 -PKGREL=1 +PKGREL=43 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb @@ -13,6 +13,12 @@ WWWCSSDIR=${WWWBASEDIR}/css WWWIMAGESDIR=${WWWBASEDIR}/images WWWJSDIR=${WWWBASEDIR}/js +IMAGES= \ + logo-128.png \ + proxmox_logo.png + +CSSFILES = ext6-pmg.css ext6-pmg-mobile.css + all: .PHONY: deb @@ -22,21 +28,33 @@ deb ${DEB}: cd build; dpkg-buildpackage -b -us -uc lintian ${DEB} -install: index.html +js/pmgmanagerlib.js: + make -C js pmgmanagerlib.js + +js/pmgmanagerlib-mobile.js: + make -C js pmgmanagerlib-mobile.js + +install: pmg-index.html.tt js/pmgmanagerlib.js js/pmgmanagerlib-mobile.js install -d -m 755 ${WWWCSSDIR} install -d -m 755 ${WWWIMAGESDIR} install -d -m 755 ${WWWJSDIR} - install -m 0644 index.html ${WWWBASEDIR} + install -m 0644 pmg-index.html.tt ${WWWBASEDIR} + install -m 0644 pmg-mobile-index.html.tt ${WWWBASEDIR} + install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR} + install -m 0644 js/pmgmanagerlib-mobile.js ${WWWJSDIR} + for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done + for i in ${CSSFILES}; do install -m 0644 css/$$i ${WWWCSSDIR}; done .PHONY: upload upload: ${DEB} - # fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload + tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch distclean: clean rm -f examples/simple-demo.pem clean: - rm -rf ./build *.deb *.changes + make -C js clean + rm -rf ./build *.deb *.changes *.buildinfo find . -name '*~' -exec rm {} ';' .PHONY: dinstall