mirror of
https://git.proxmox.com/git/pmg-gui
synced 2026-01-23 03:47:28 +00:00
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
PACKAGE=proxmox-mailgateway-gui
|
|
PKGVER=1.0
|
|
PKGREL=3
|
|
|
|
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
|
|
|
DESTDIR=
|
|
|
|
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
|
|
|
WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
|
|
WWWCSSDIR=${WWWBASEDIR}/css
|
|
WWWIMAGESDIR=${WWWBASEDIR}/images
|
|
WWWJSDIR=${WWWBASEDIR}/js
|
|
|
|
IMAGES= \
|
|
logo-128.png \
|
|
proxmox_logo.png
|
|
|
|
CSSFILES = ext6-pmg.css
|
|
|
|
all:
|
|
|
|
.PHONY: deb
|
|
deb ${DEB}:
|
|
rm -rf build
|
|
rsync -a * build
|
|
cd build; dpkg-buildpackage -b -us -uc
|
|
lintian ${DEB}
|
|
|
|
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 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}
|
|
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
|
|
|
|
distclean: clean
|
|
rm -f examples/simple-demo.pem
|
|
|
|
clean:
|
|
make -C js clean
|
|
rm -rf ./build *.deb *.changes *.buildinfo
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
.PHONY: dinstall
|
|
dinstall: ${DEB}
|
|
dpkg -i ${DEB}
|