]> git.proxmox.com Git - proxmox-widget-toolkit.git/blame - Makefile
bump version to 1.0-3
[proxmox-widget-toolkit.git] / Makefile
CommitLineData
e9b7ca96
DM
1PACKAGE=proxmox-widget-toolkit
2PKGVER=1.0
16f921d7 3PKGREL=3
e9b7ca96
DM
4
5DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7DESTDIR=
8
9DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
10
11WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
12
13JSSRC= \
14 Utils.js \
bb64de6e 15 Toolkit.js \
281ad45b 16 mixin/CBind.js \
e9b7ca96
DM
17 data/reader/JsonObject.js \
18 data/ProxmoxProxy.js \
19 data/UpdateQueue.js \
20 data/UpdateStore.js \
21 data/DiffStore.js \
22 data/ObjectStore.js \
1748088d 23 data/RRDStore.js \
06694509 24 data/TimezoneStore.js \
d44fdf59 25 form/IntegerField.js \
a0ec1620 26 form/TextField.js \
fccec7c6 27 form/Checkbox.js \
211267b8 28 form/KVComboBox.js \
066babdc 29 form/ComboGrid.js \
a0ba293c 30 form/RRDTypeSelector.js \
d1661fde 31 button/Button.js \
06694509 32 grid/ObjectGrid.js \
40d43a39 33 grid/PendingObjectGrid.js \
89796c1a 34 panel/InputPanel.js \
de2e10b5 35 panel/LogView.js \
0c786d2b 36 panel/RRDChart.js \
06694509 37 window/Edit.js \
c9441d5f 38 window/PasswordEdit.js \
06694509 39 window/TaskViewer.js \
a58001dd
DM
40 node/NetworkEdit.js \
41 node/NetworkView.js \
eb874be7
DM
42 node/DNSEdit.js \
43 node/DNSView.js \
09d64465 44 node/Tasks.js \
d7139140 45 node/ServiceView.js \
06694509
DM
46 node/TimeEdit.js \
47 node/TimeView.js
e9b7ca96
DM
48
49all:
50
51.PHONY: deb
52deb ${DEB}:
53 rm -rf build
54 rsync -a * build
55 cd build; dpkg-buildpackage -b -us -uc
56 lintian ${DEB}
57
58.PHONY: lint
59lint: ${JSSRC}
60 jslint ${JSSRC}
61
62proxmoxlib.js: ${JSSRC}
63 cat ${JSSRC} >$@.tmp
64 mv $@.tmp $@
65
66install: proxmoxlib.js
67 install -d -m 755 ${WWWBASEDIR}
68 install -m 0644 proxmoxlib.js ${WWWBASEDIR}
69
70.PHONY: upload
71upload: ${DEB}
b542702d 72 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
e9b7ca96
DM
73
74distclean: clean
75
76clean:
77 rm -rf ./build *.deb *.changes *.buildinfo
78 find . -name '*~' -exec rm {} ';'
79
80.PHONY: dinstall
81dinstall: ${DEB}
82 dpkg -i ${DEB}