]> git.proxmox.com Git - pmg-gui.git/blame - Makefile
buildsys: fix makefile dependencies
[pmg-gui.git] / Makefile
CommitLineData
62744365
TL
1include /usr/share/dpkg/pkg-info.mk
2
a36b87b1 3PACKAGE=pmg-gui
8b0b6db4 4
62744365 5DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8b0b6db4
DM
6
7DESTDIR=
8b0b6db4 8DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
8b0b6db4
DM
9WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
10WWWCSSDIR=${WWWBASEDIR}/css
11WWWIMAGESDIR=${WWWBASEDIR}/images
12WWWJSDIR=${WWWBASEDIR}/js
13
fe81f069 14IMAGES= \
e1f5961f
TL
15 images/logo-128.png \
16 images/proxmox_logo.png
fe81f069 17
e1f5961f 18CSSFILES = css/ext6-pmg.css css/ext6-pmg-mobile.css
881a1154 19
0391bb7a
DC
20export DEB_VERSION_UPSTREAM_REVISION
21
8b0b6db4
DM
22all:
23
24.PHONY: deb
25deb ${DEB}:
26 rm -rf build
27 rsync -a * build
28 cd build; dpkg-buildpackage -b -us -uc
29 lintian ${DEB}
30
e1f5961f 31.PHONY: js/pmgmanagerlib.js js/pmgmanagerlib-mobile.js
fe81f069
DM
32js/pmgmanagerlib.js:
33 make -C js pmgmanagerlib.js
43f0b189
DC
34js/pmgmanagerlib-mobile.js:
35 make -C js pmgmanagerlib-mobile.js
36
e1f5961f
TL
37install: pmg-index.html.tt pmg-mobile-index.html.tt js/pmgmanagerlib.js js/pmgmanagerlib-mobile.js ${IMAGES} ${CSSFILES}
38 install -d -m 755 ${WWWBASEDIR}
8b0b6db4
DM
39 install -d -m 755 ${WWWCSSDIR}
40 install -d -m 755 ${WWWIMAGESDIR}
41 install -d -m 755 ${WWWJSDIR}
d6ea28a5 42 install -m 0644 pmg-index.html.tt ${WWWBASEDIR}
43f0b189 43 install -m 0644 pmg-mobile-index.html.tt ${WWWBASEDIR}
fe81f069 44 install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR}
43f0b189 45 install -m 0644 js/pmgmanagerlib-mobile.js ${WWWJSDIR}
e1f5961f
TL
46 for f in ${IMAGES}; do install -m 0644 "$$f" ${WWWIMAGESDIR}; done
47 for f in ${CSSFILES}; do install -m 0644 "$$f" ${WWWCSSDIR}; done
8b0b6db4
DM
48
49.PHONY: upload
50upload: ${DEB}
5b7319bc 51 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
8b0b6db4
DM
52
53distclean: clean
54 rm -f examples/simple-demo.pem
55
56clean:
fe81f069
DM
57 make -C js clean
58 rm -rf ./build *.deb *.changes *.buildinfo
8b0b6db4
DM
59 find . -name '*~' -exec rm {} ';'
60
61.PHONY: dinstall
62dinstall: ${DEB}
63 dpkg -i ${DEB}