proxmox-widget-toolkit/Makefile

105 lines
2.2 KiB
Makefile
Raw Normal View History

2017-01-30 11:57:12 +03:00
PACKAGE=proxmox-widget-toolkit
PKGVER=1.0
PKGREL=27
2017-01-30 11:57:12 +03:00
BUILDDIR ?= ${PACKAGE}-${PKGVER}
GITVERSION:=$(shell git rev-parse HEAD)
2017-01-30 11:57:12 +03:00
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
2017-01-30 11:57:12 +03:00
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 \
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 \
form/TextField.js \
form/DateTimeField.js \
form/Checkbox.js \
2017-02-25 12:20:12 +03:00
form/KVComboBox.js \
form/LanguageSelector.js \
form/ComboGrid.js \
form/RRDTypeSelector.js \
form/BondModeSelector.js \
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 \
grid/PendingObjectGrid.js \
panel/InputPanel.js \
panel/LogView.js \
2017-08-29 09:43:50 +03:00
panel/RRDChart.js \
panel/GaugeWidget.js \
2017-01-30 15:40:51 +03:00
window/Edit.js \
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 \
node/NetworkEdit.js \
node/NetworkView.js \
2017-02-01 09:14:07 +03:00
node/DNSEdit.js \
node/HostsView.js \
2017-02-01 09:14:07 +03:00
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:
${BUILDDIR}:
rm -rf ${BUILDDIR}
rsync -a * ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
2017-01-30 11:57:12 +03:00
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
2017-01-30 11:57:12 +03:00
lintian ${DEB}
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
lintian ${DSC}
2017-01-30 11:57:12 +03:00
.PHONY: lint
lint: ${JSSRC}
jslint ${JSSRC}
proxmoxlib.js: ${JSSRC}
# add the version as comment in the file
echo "// ${PKGVER}-${PKGREL}" > $@.tmp
cat ${JSSRC} >> $@.tmp
2017-01-30 11:57:12 +03:00
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
2017-01-30 11:57:12 +03:00
distclean: clean
clean:
rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb *.changes *.buildinfo proxmoxlib.js
2017-01-30 11:57:12 +03:00
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}