5
0
mirror of git://git.proxmox.com/git/proxmox-fuse.git synced 2024-12-22 17:36:00 +03:00
proxmox-fuse/Makefile
Wolfgang Bumiller 30f1a11c2e set upload dist to bullseye
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-04 09:28:06 +01:00

45 lines
1.1 KiB
Makefile

.PHONY: all
all: check
.PHONY: check
check:
cargo test --all-features
.PHONY: dinstall
dinstall: deb
sudo -k dpkg -i build/librust-*.deb
.PHONY: build
build:
rm -rf build
rm debian/control
mkdir build
debcargo package \
--config "$(PWD)/debian/debcargo.toml" \
--changelog-ready \
--no-overlay-write-back \
--directory "$(PWD)/build/proxmox-fuse" \
"proxmox-fuse" \
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
echo system >build/rust-toolchain
rm -f build/proxmox-fuse/Cargo.lock
find build/proxmox-fuse/debian -name '*.hint' -delete
cp build/proxmox-fuse/debian/control debian/control
.PHONY: deb
deb: build
(cd build/proxmox-fuse && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us)
lintian build/*.deb
.PHONY: clean
clean:
rm -rf build *.deb *.buildinfo *.changes *.orig.tar.gz
cargo clean
upload: deb
cd build; \
dcmd --deb rust-proxmox-fuse_*.changes \
| grep -v '.changes$$' \
| tar -cf- -T- \
| ssh -X repoman@repo.proxmox.com upload --product devel --dist bullseye