buildsys: cleanup and expand clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-18 11:59:07 +02:00
parent c0bc3436ee
commit f7a9ddfdfd
2 changed files with 2 additions and 5 deletions

View File

@ -55,12 +55,10 @@ install: target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG
find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
distclean: clean
clean:
cargo clean
rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock
rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock
rm -rf $(PACKAGE)-[0-9]*/
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: $(DEBS)

View File

@ -63,9 +63,8 @@ install: target/release/libpve_rs.so Proxmox/Lib/PVE.pm PVE
clean:
cargo clean
rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock *.tar.?z *.build
rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock
rm -rf $(PACKAGE)-[0-9]*/
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: $(DEBS)