buildsys: drop old deb building from pmg,pve Makefiles

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-03-21 15:40:08 +01:00
parent 2fad118858
commit 856ab916b1
2 changed files with 2 additions and 30 deletions

View File

@ -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

View File

@ -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