From 856ab916b15dff03a39ad78afdc2beda89d91ed2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 21 Mar 2023 15:40:08 +0100 Subject: [PATCH] buildsys: drop old deb building from pmg,pve Makefiles Signed-off-by: Wolfgang Bumiller --- pmg-rs/Makefile | 16 +--------------- pve-rs/Makefile | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/pmg-rs/Makefile b/pmg-rs/Makefile index 6748979..8ca1cb7 100644 --- a/pmg-rs/Makefile +++ b/pmg-rs/Makefile @@ -38,14 +38,6 @@ Proxmox/Lib/PMG.pm: ../Proxmox/Lib/template.pm mkdir -p Proxmox/Lib $(call package_template,PMG,pmg_rs,../) -# always re-create this dir -# but also copy the local target/ and PMG/ dirs as a build-cache -.PHONY: build -build: - rm -rf build - cargo build --release - rsync -a debian Makefile Cargo.toml Cargo.lock src target PMG build/ - .PHONY: install install: ../target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto @@ -55,17 +47,11 @@ install: ../target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG install -m644 Proxmox/Lib/PMG.pm $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib/PMG.pm find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';' -.PHONY: deb -deb: $(MAIN_DEB) -$(MAIN_DEB): build - cd build; dpkg-buildpackage -b -us -uc --no-pre-clean - lintian $(DEBS) - distclean: clean clean: cargo clean - rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock build + rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock find . -name '*~' -exec rm {} ';' .PHONY: dinstall diff --git a/pve-rs/Makefile b/pve-rs/Makefile index d04868d..9d12d58 100644 --- a/pve-rs/Makefile +++ b/pve-rs/Makefile @@ -48,14 +48,6 @@ Proxmox/Lib/PVE.pm: ../Proxmox/Lib/template.pm check: all $(MAKE) -C test test -# always re-create this dir -# but also copy the local target/ and PVE/ dirs as a build-cache -.PHONY: build -build: - rm -rf build - cargo build --release - rsync -a debian Makefile Cargo.toml Cargo.lock src target PVE build/ - .PHONY: install install: ../target/release/libpve_rs.so Proxmox/Lib/PVE.pm PVE install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto @@ -65,17 +57,11 @@ install: ../target/release/libpve_rs.so Proxmox/Lib/PVE.pm PVE install -m644 Proxmox/Lib/PVE.pm $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib/PVE.pm find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';' -.PHONY: deb -deb: $(MAIN_DEB) -$(MAIN_DEB): build - cd build; dpkg-buildpackage -b -us -uc --no-pre-clean - lintian $(DEBS) - distclean: clean clean: cargo clean - rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock build + rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes Cargo.lock find . -name '*~' -exec rm {} ';' .PHONY: dinstall