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