2017-01-30 11:57:12 +03:00
PACKAGE = proxmox-widget-toolkit
PKGVER = 1.0
PKGREL = 1
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-01-30 11:57:12 +03:00
data/reader/JsonObject.js \
data/ProxmoxProxy.js \
data/UpdateQueue.js \
data/UpdateStore.js \
data/DiffStore.js \
data/ObjectStore.js \
2017-01-30 15:40:51 +03:00
data/TimezoneStore.js \
2017-01-31 19:12:14 +03:00
form/TextField.js \
2017-01-31 19:17:12 +03:00
form/Checkbox.js \
2017-01-30 15:40:51 +03:00
grid/ObjectGrid.js \
2017-01-31 19:08:47 +03:00
panel/InputPanel.js \
2017-01-31 13:58:53 +03:00
panel/LogView.js \
2017-01-30 15:40:51 +03:00
window/Edit.js \
window/TaskViewer.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 }
# fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
distclean : clean
clean :
rm -rf ./build *.deb *.changes *.buildinfo
find . -name '*~' -exec rm { } ';'
.PHONY : dinstall
dinstall : ${DEB }
dpkg -i ${ DEB }