]> git.proxmox.com Git - pve-client.git/blame - Makefile
add stub for lxc commands
[pve-client.git] / Makefile
CommitLineData
e4f88921
DM
1PACKAGE=pve-client
2PKGVER=0.1
3PKGREL=1
4
5DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7DESTDIR=
8
565bbc73 9LIB_DIR=${DESTDIR}/usr/share/${PACKAGE}
e4f88921
DM
10DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
11
12all: ${DEB}
13
14.PHONY: deb
15deb ${DEB}:
16 rm -rf build
17 rsync -a debian build
18 make DESTDIR=./build install
19 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
20 lintian ${DEB}
21
22install: pve-api-definition.js
565bbc73
DM
23 install -d -m 0755 ${LIB_DIR}/PVE
24 # install library tools from pve-common
25 install -m 0644 PVE/Tools.pm ${LIB_DIR}/PVE
26 install -m 0644 PVE/SafeSyslog.pm ${LIB_DIR}/PVE
27 install -m 0644 PVE/Exception.pm ${LIB_DIR}/PVE
28 install -m 0644 PVE/JSONSchema.pm ${LIB_DIR}/PVE
29 install -m 0644 PVE/RESTHandler.pm ${LIB_DIR}/PVE
30 install -m 0644 PVE/CLIHandler.pm ${LIB_DIR}/PVE
31 # install pveclient
32 install -D -m 0644 PVE/APIClient/Helpers.pm ${LIB_DIR}/PVE/APIClient/Helpers.pm
33 install -D -m 0644 PVE/APIClient/Commands/remote.pm ${LIB_DIR}/PVE/APIClient/Commands/remote.pm
adf285bf 34 install -D -m 0644 PVE/APIClient/Commands/lxc.pm ${LIB_DIR}/PVE/APIClient/Commands/lxc.pm
565bbc73 35 install -D -m 0644 pve-api-definition.js ${LIB_DIR}/pve-api-definition.js
e4f88921
DM
36 install -D -m 0755 pveclient ${DESTDIR}/usr/bin/pveclient
37
38pve-api-definition.js:
39 ./extractapi.pl > pve-api-definition.js.tmp
40 mv pve-api-definition.js.tmp pve-api-definition.js
41
81ddc6f6
DM
42#.PHONY: upload
43#upload: ${DEB}
44# tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pmg,pve --dist stretch
e4f88921
DM
45
46distclean: clean
47
48clean:
49 rm -rf ./build *.deb *.changes *.buildinfo
50 find . -name '*~' -exec rm {} ';'
51
52.PHONY: dinstall
53dinstall: ${DEB}
54 dpkg -i ${DEB}