]> git.proxmox.com Git - pmg-gui.git/blob - Makefile
initial commit
[pmg-gui.git] / Makefile
1 PACKAGE=proxmox-mailgateway-gui
2 PKGVER=1.0
3 PKGREL=1
4
5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7 DESTDIR=
8
9 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
10
11 WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
12 WWWCSSDIR=${WWWBASEDIR}/css
13 WWWIMAGESDIR=${WWWBASEDIR}/images
14 WWWJSDIR=${WWWBASEDIR}/js
15
16 all:
17
18 .PHONY: deb
19 deb ${DEB}:
20 rm -rf build
21 rsync -a * build
22 cd build; dpkg-buildpackage -b -us -uc
23 lintian ${DEB}
24
25 install: index.html
26 install -d -m 755 ${WWWCSSDIR}
27 install -d -m 755 ${WWWIMAGESDIR}
28 install -d -m 755 ${WWWJSDIR}
29 install -m 0644 index.html ${WWWBASEDIR}
30
31 .PHONY: upload
32 upload: ${DEB}
33 # fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
34
35 distclean: clean
36 rm -f examples/simple-demo.pem
37
38 clean:
39 rm -rf ./build *.deb *.changes
40 find . -name '*~' -exec rm {} ';'
41
42 .PHONY: dinstall
43 dinstall: ${DEB}
44 dpkg -i ${DEB}