buildsys: drop file list in Makefiles

just install all files, `make gen` at the top level is
responsible for generating the correct files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-03-21 14:08:07 +01:00
parent e148c6d608
commit d00bfdcddb
3 changed files with 13 additions and 49 deletions

View File

@ -12,28 +12,15 @@ DEB=${PACKAGE}_${DEB_VERSION}_${ARCH}.deb
DESTDIR= DESTDIR=
PM_DIRS := \
PVE/RS \
Proxmox/Lib \
Proxmox/RS
PM_FILES := \
PVE/RS/CalendarEvent.pm \
Proxmox/Lib/Common.pm \
Proxmox/RS/CalendarEvent.pm
all: all:
true true
.PHONY: install .PHONY: install
install: install:
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB) install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
set -e && for i in $(PM_DIRS); do \ find PVE \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \ find Proxmox \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
done rm $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/Proxmox/Lib/template.pm'
set -e && for i in $(PM_FILES); do \
install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
done
.PHONY: deb .PHONY: deb
deb: $(DEB) deb: $(DEB)

View File

@ -14,16 +14,7 @@ DEBS=$(MAIN_DEB) $(DBGSYM_DEB)
DESTDIR= DESTDIR=
PM_DIRS := \ PM_DIR := PMG
Proxmox/Lib \
PMG/RS/APT
PM_FILES := \
Proxmox/Lib/PMG.pm \
PMG/RS/APT/Repositories.pm \
PMG/RS/Acme.pm \
PMG/RS/CSR.pm \
PMG/RS/TFA.pm
ifeq ($(BUILD_MODE), release) ifeq ($(BUILD_MODE), release)
CARGO_BUILD_ARGS += --release CARGO_BUILD_ARGS += --release
@ -46,13 +37,10 @@ build:
install: target/release/libpmg_rs.so install: target/release/libpmg_rs.so
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto
install -m644 target/release/libpmg_rs.so $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto/libpmg_rs.so install -m644 target/release/libpmg_rs.so $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto/libpmg_rs.so
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/PMG/RS install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
set -e && for i in $(PM_DIRS); do \ install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \ install -m644 Proxmox/Lib/PMG.pm $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib/PMG.pm
done find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
set -e && for i in $(PM_FILES); do \
install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
done
.PHONY: deb .PHONY: deb
deb: $(MAIN_DEB) deb: $(MAIN_DEB)

View File

@ -15,15 +15,7 @@ DEBS=$(MAIN_DEB) $(DBGSYM_DEB)
DESTDIR= DESTDIR=
PM_DIRS := \ PM_DIR := PVE
Proxmox/Lib \
PVE/RS/APT
PM_FILES := \
Proxmox/Lib/PVE.pm \
PVE/RS/APT/Repositories.pm \
PVE/RS/OpenId.pm \
PVE/RS/TFA.pm
ifeq ($(BUILD_MODE), release) ifeq ($(BUILD_MODE), release)
CARGO_BUILD_ARGS += --release CARGO_BUILD_ARGS += --release
@ -46,13 +38,10 @@ build:
install: target/release/libpve_rs.so install: target/release/libpve_rs.so
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto
install -m644 target/release/libpve_rs.so $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto/libpve_rs.so install -m644 target/release/libpve_rs.so $(DESTDIR)$(PERL_INSTALLVENDORARCH)/auto/libpve_rs.so
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/PVE/RS install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
set -e && for i in $(PM_DIRS); do \ install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \ install -m644 Proxmox/Lib/PVE.pm $(DESTDIR)$(PERL_INSTALLVENDORLIB)/Proxmox/Lib/PVE.pm
done find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
set -e && for i in $(PM_FILES); do \
install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
done
.PHONY: deb .PHONY: deb
deb: $(MAIN_DEB) deb: $(MAIN_DEB)