]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - Makefile
add TimeView, TimeEdit and TaskViewer
[proxmox-widget-toolkit.git] / Makefile
1 PACKAGE=proxmox-widget-toolkit
2 PKGVER=1.0
3 PKGREL=1
4
5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7 DESTDIR=
8
9 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
10
11 WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
12
13 JSSRC= \
14 Utils.js \
15 data/reader/JsonObject.js \
16 data/ProxmoxProxy.js \
17 data/UpdateQueue.js \
18 data/UpdateStore.js \
19 data/DiffStore.js \
20 data/ObjectStore.js \
21 data/TimezoneStore.js \
22 grid/ObjectGrid.js \
23 window/Edit.js \
24 window/TaskViewer.js \
25 node/TimeEdit.js \
26 node/TimeView.js
27
28 all:
29
30 .PHONY: deb
31 deb ${DEB}:
32 rm -rf build
33 rsync -a * build
34 cd build; dpkg-buildpackage -b -us -uc
35 lintian ${DEB}
36
37 .PHONY: lint
38 lint: ${JSSRC}
39 jslint ${JSSRC}
40
41 proxmoxlib.js: ${JSSRC}
42 cat ${JSSRC} >$@.tmp
43 mv $@.tmp $@
44
45 install: proxmoxlib.js
46 install -d -m 755 ${WWWBASEDIR}
47 install -m 0644 proxmoxlib.js ${WWWBASEDIR}
48
49 .PHONY: upload
50 upload: ${DEB}
51 # fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
52
53 distclean: clean
54
55 clean:
56 rm -rf ./build *.deb *.changes *.buildinfo
57 find . -name '*~' -exec rm {} ';'
58
59 .PHONY: dinstall
60 dinstall: ${DEB}
61 dpkg -i ${DEB}