fa6dc53bcc
this is needed for the node/NetworkEdit.js Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
89 lines
1.7 KiB
Makefile
89 lines
1.7 KiB
Makefile
PACKAGE=proxmox-widget-toolkit
|
|
PKGVER=1.0
|
|
PKGREL=5
|
|
|
|
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
|
|
|
DESTDIR=
|
|
|
|
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
|
|
|
WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
|
|
|
|
JSSRC= \
|
|
Utils.js \
|
|
Toolkit.js \
|
|
mixin/CBind.js \
|
|
data/reader/JsonObject.js \
|
|
data/ProxmoxProxy.js \
|
|
data/UpdateQueue.js \
|
|
data/UpdateStore.js \
|
|
data/DiffStore.js \
|
|
data/ObjectStore.js \
|
|
data/RRDStore.js \
|
|
data/TimezoneStore.js \
|
|
form/IntegerField.js \
|
|
form/TextField.js \
|
|
form/DateTimeField.js \
|
|
form/Checkbox.js \
|
|
form/KVComboBox.js \
|
|
form/LanguageSelector.js \
|
|
form/ComboGrid.js \
|
|
form/RRDTypeSelector.js \
|
|
form/BondModeSelector.js \
|
|
button/Button.js \
|
|
button/HelpButton.js \
|
|
grid/ObjectGrid.js \
|
|
grid/PendingObjectGrid.js \
|
|
panel/InputPanel.js \
|
|
panel/LogView.js \
|
|
panel/RRDChart.js \
|
|
panel/GaugeWidget.js \
|
|
window/Edit.js \
|
|
window/PasswordEdit.js \
|
|
window/TaskViewer.js \
|
|
node/APT.js \
|
|
node/NetworkEdit.js \
|
|
node/NetworkView.js \
|
|
node/DNSEdit.js \
|
|
node/DNSView.js \
|
|
node/Tasks.js \
|
|
node/ServiceView.js \
|
|
node/TimeEdit.js \
|
|
node/TimeView.js
|
|
|
|
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}
|
|
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
|
|
|
distclean: clean
|
|
|
|
clean:
|
|
rm -rf ./build *.deb *.changes *.buildinfo
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
.PHONY: dinstall
|
|
dinstall: ${DEB}
|
|
dpkg -i ${DEB}
|