]> git.proxmox.com Git - proxmox-widget-toolkit.git/blame - Makefile
reword suspend
[proxmox-widget-toolkit.git] / Makefile
CommitLineData
e9b7ca96
DM
1PACKAGE=proxmox-widget-toolkit
2PKGVER=1.0
60b98983 3PKGREL=24
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 \
e9b7ca96
DM
19 data/UpdateStore.js \
20 data/DiffStore.js \
21 data/ObjectStore.js \
1748088d 22 data/RRDStore.js \
06694509 23 data/TimezoneStore.js \
d44fdf59 24 form/IntegerField.js \
a0ec1620 25 form/TextField.js \
2e7bd1dc 26 form/DateTimeField.js \
fccec7c6 27 form/Checkbox.js \
211267b8 28 form/KVComboBox.js \
f6f0066a 29 form/LanguageSelector.js \
066babdc 30 form/ComboGrid.js \
a0ba293c 31 form/RRDTypeSelector.js \
fa6dc53b 32 form/BondModeSelector.js \
d1661fde 33 button/Button.js \
a3489b10 34 button/HelpButton.js \
06694509 35 grid/ObjectGrid.js \
40d43a39 36 grid/PendingObjectGrid.js \
89796c1a 37 panel/InputPanel.js \
de2e10b5 38 panel/LogView.js \
0c786d2b 39 panel/RRDChart.js \
e7ff021c 40 panel/GaugeWidget.js \
06694509 41 window/Edit.js \
c9441d5f 42 window/PasswordEdit.js \
06694509 43 window/TaskViewer.js \
5f93e010 44 node/APT.js \
a58001dd
DM
45 node/NetworkEdit.js \
46 node/NetworkView.js \
eb874be7 47 node/DNSEdit.js \
3cf341e9 48 node/HostsView.js \
eb874be7 49 node/DNSView.js \
09d64465 50 node/Tasks.js \
d7139140 51 node/ServiceView.js \
06694509
DM
52 node/TimeEdit.js \
53 node/TimeView.js
e9b7ca96
DM
54
55all:
56
57.PHONY: deb
f3cf5c9b
WB
58deb: ${DEB}
59${DEB}:
e9b7ca96
DM
60 rm -rf build
61 rsync -a * build
62 cd build; dpkg-buildpackage -b -us -uc
63 lintian ${DEB}
64
65.PHONY: lint
66lint: ${JSSRC}
67 jslint ${JSSRC}
68
69proxmoxlib.js: ${JSSRC}
f2bf80bd
DC
70 # add the version as comment in the file
71 echo "// ${PKGVER}-${PKGREL}" > $@.tmp
72 cat ${JSSRC} >> $@.tmp
e9b7ca96
DM
73 mv $@.tmp $@
74
75install: proxmoxlib.js
76 install -d -m 755 ${WWWBASEDIR}
77 install -m 0644 proxmoxlib.js ${WWWBASEDIR}
78
79.PHONY: upload
80upload: ${DEB}
b542702d 81 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
e9b7ca96
DM
82
83distclean: clean
84
85clean:
42a6e120 86 rm -rf ./build *.deb *.changes *.buildinfo proxmoxlib.js
e9b7ca96
DM
87 find . -name '*~' -exec rm {} ';'
88
89.PHONY: dinstall
90dinstall: ${DEB}
91 dpkg -i ${DEB}