X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=7e57d9bc96830b2dffa8ce03802a0193ac667380;hb=332b4b524ed5d885a7e8ac9a5a89ea08865205e8;hp=2d1d104ea93bfb34269b901a9194628b6a1c2a7f;hpb=881a1154f43d33fb95f60732e09778cfaeaceb59;p=pmg-gui.git diff --git a/Makefile b/Makefile index 2d1d104..7e57d9b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -PACKAGE=proxmox-mailgateway-gui +PACKAGE=pmg-gui PKGVER=1.0 -PKGREL=1 +PKGREL=19 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb @@ -13,8 +13,11 @@ WWWCSSDIR=${WWWBASEDIR}/css WWWIMAGESDIR=${WWWBASEDIR}/images WWWJSDIR=${WWWBASEDIR}/js -IMAGES= \ - logo-128.png +IMAGES= \ + logo-128.png \ + proxmox_logo.png + +CSSFILES = ext6-pmg.css all: @@ -25,22 +28,28 @@ deb ${DEB}: cd build; dpkg-buildpackage -b -us -uc lintian ${DEB} -install: index.html +js/pmgmanagerlib.js: + make -C js pmgmanagerlib.js + +install: pmg-index.html.tt js/pmgmanagerlib.js install -d -m 755 ${WWWCSSDIR} install -d -m 755 ${WWWIMAGESDIR} install -d -m 755 ${WWWJSDIR} - install -m 0644 index.html ${WWWBASEDIR} - for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done + install -m 0644 pmg-index.html.tt ${WWWBASEDIR} + install -m 0644 js/pmgmanagerlib.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