mirror of
git://git.proxmox.com/git/proxmox-fuse.git
synced 2024-12-22 17:36:00 +03:00
29 lines
566 B
Makefile
29 lines
566 B
Makefile
|
.PHONY: all
|
||
|
all: check
|
||
|
|
||
|
.PHONY: check
|
||
|
check:
|
||
|
cargo test
|
||
|
|
||
|
.PHONY: dinstall
|
||
|
dinstall: deb
|
||
|
|
||
|
.PHONY: deb
|
||
|
deb:
|
||
|
rm -rf build
|
||
|
debcargo package \
|
||
|
--config "$(PWD)/debian/debcargo.toml" \
|
||
|
--changelog-ready \
|
||
|
--no-overlay-write-back \
|
||
|
--directory "$(PWD)/build" \
|
||
|
"proxmox-fuse" \
|
||
|
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
|
||
|
echo system >build/rust-toolchain
|
||
|
(cd build && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us)
|
||
|
lintian *.deb
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -rf build
|
||
|
cargo clean
|