2017-01-30 11:57:12 +03:00
PACKAGE = proxmox-widget-toolkit
PKGVER = 1.0
2017-12-11 16:43:35 +03:00
PKGREL = 9
2017-01-30 11:57:12 +03:00
DEB = ${ PACKAGE } _${ PKGVER } -${ PKGREL } _all.deb
DESTDIR =
DOCDIR = ${ DESTDIR } /usr/share/doc/${ PACKAGE }
WWWBASEDIR = ${ DESTDIR } /usr/share/javascript/${ PACKAGE }
JSSRC = \
Utils.js \
2017-01-31 19:32:18 +03:00
Toolkit.js \
2017-03-31 11:19:53 +03:00
mixin/CBind.js \
2017-01-30 11:57:12 +03:00
data/reader/JsonObject.js \
data/ProxmoxProxy.js \
data/UpdateStore.js \
data/DiffStore.js \
data/ObjectStore.js \
2017-08-29 08:03:32 +03:00
data/RRDStore.js \
2017-01-30 15:40:51 +03:00
data/TimezoneStore.js \
2017-02-24 10:32:30 +03:00
form/IntegerField.js \
2017-01-31 19:12:14 +03:00
form/TextField.js \
2017-09-20 13:42:19 +03:00
form/DateTimeField.js \
2017-01-31 19:17:12 +03:00
form/Checkbox.js \
2017-02-25 12:20:12 +03:00
form/KVComboBox.js \
2017-10-04 11:50:59 +03:00
form/LanguageSelector.js \
2017-03-22 14:32:28 +03:00
form/ComboGrid.js \
2017-08-29 07:25:25 +03:00
form/RRDTypeSelector.js \
2017-11-14 13:17:03 +03:00
form/BondModeSelector.js \
2017-02-25 16:35:29 +03:00
button/Button.js \
2017-09-27 11:04:29 +03:00
button/HelpButton.js \
2017-01-30 15:40:51 +03:00
grid/ObjectGrid.js \
2017-02-24 09:45:09 +03:00
grid/PendingObjectGrid.js \
2017-01-31 19:08:47 +03:00
panel/InputPanel.js \
2017-01-31 13:58:53 +03:00
panel/LogView.js \
2017-08-29 09:43:50 +03:00
panel/RRDChart.js \
2017-10-10 16:10:20 +03:00
panel/GaugeWidget.js \
2017-01-30 15:40:51 +03:00
window/Edit.js \
2017-03-27 09:14:46 +03:00
window/PasswordEdit.js \
2017-01-30 15:40:51 +03:00
window/TaskViewer.js \
2017-09-21 14:05:07 +03:00
node/APT.js \
2017-01-31 19:05:09 +03:00
node/NetworkEdit.js \
node/NetworkView.js \
2017-02-01 09:14:07 +03:00
node/DNSEdit.js \
node/DNSView.js \
2017-01-31 11:25:24 +03:00
node/Tasks.js \
2017-01-31 17:21:37 +03:00
node/ServiceView.js \
2017-01-30 15:40:51 +03:00
node/TimeEdit.js \
node/TimeView.js
2017-01-30 11:57:12 +03:00
all :
.PHONY : deb
deb ${DEB} :
rm -rf build
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
lintian ${ DEB }
.PHONY : lint
lint : ${JSSRC }
jslint ${ JSSRC }
proxmoxlib.js : ${JSSRC }
cat ${ JSSRC } >$@ .tmp
mv $@ .tmp $@
install : proxmoxlib .js
install -d -m 755 ${ WWWBASEDIR }
install -m 0644 proxmoxlib.js ${ WWWBASEDIR }
.PHONY : upload
upload : ${DEB }
2017-03-08 19:03:11 +03:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
2017-01-30 11:57:12 +03:00
distclean : clean
clean :
rm -rf ./build *.deb *.changes *.buildinfo
find . -name '*~' -exec rm { } ';'
.PHONY : dinstall
dinstall : ${DEB }
dpkg -i ${ DEB }