]> git.proxmox.com Git - proxmox-backup.git/blame - Makefile
src/backup/archive_index.rs: implement flush()
[proxmox-backup.git] / Makefile
CommitLineData
fe0e04c6 1PACKAGE=proxmox-backup
209bb433 2PKGVER=0.1
de779814
DM
3PKGREL=1
4
209bb433
DM
5ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6GITVERSION:=$(shell git rev-parse HEAD)
7
4b26195c
DM
8export PROXMOX_PKG_VERSION=${PKGVER}
9export PROXMOX_PKG_RELEASE=${PKGREL}
10export PROXMOX_PKG_REPOID=${GITVERSION}
209bb433
DM
11
12DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
13
14DESTDIR=
de779814 15
4b26195c
DM
16all:
17 cargo build
de779814 18
f7dd683b
DM
19test:
20 cargo test
21
209bb433
DM
22.PHONY: deb
23deb ${DEB}:
de779814
DM
24 rm -rf build
25 # build here to cache results
26 cargo build --release
5c7a1b15 27 make -C www
ebc9a692 28 rsync -a debian Cargo.lock Cargo.toml src www target build
de779814
DM
29 cd build; dpkg-buildpackage -b -us -uc
30
31
209bb433 32distclean: clean
de779814
DM
33
34clean:
4b26195c 35 make -C www clean
de779814 36 cargo clean
d3cb69c4
DM
37 rm -rf *.deb *.buildinfo *.changes build
38 find . -name '*~' -exec rm {} ';'
39
209bb433
DM
40.PHONY: dinstall
41dinstall: ${DEB}
42 dpkg -i ${DEB}