From f3521633145b3303bdbdeb122fc22222dae4681b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 4 Apr 2023 16:30:55 +0200 Subject: [PATCH] buildsys: depend on full known-to-git file list for installer sources basically only used for change-tracking on what targets to rebuild, so avoid the need to have the list here duplicated, most files known to git are installer files Signed-off-by: Thomas Lamprecht --- Makefile | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 6ecb7e6..6c95c71 100644 --- a/Makefile +++ b/Makefile @@ -2,29 +2,16 @@ include /usr/share/dpkg/pkg-info.mk DEB=proxmox-installer_${DEB_VERSION_UPSTREAM_REVISION}_all.deb -INSTALLER_SOURCES= \ - unconfigured.sh \ - fake-start-stop-daemon \ - policy-disable-rc.d \ - interfaces \ - checktime \ - xinitrc \ - spice-vdagent.sh \ - Xdefaults \ - country.dat \ - proxinstall - -HTML_SOURCES=$(wildcard html/*.htm) -HTML_COMMON_SOURCES=$(wildcard html-common/*.htm) $(wildcard html-common/*.css) $(wildcard html-common/*.png) - -all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} +INSTALLER_SOURCES=$(shell git ls-files) country.dat + +all: country.dat: country.pl ./country.pl > country.dat.tmp mv country.dat.tmp country.dat deb: ${DEB} -${DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} ProxmoxInstallerSetup.pm +${DEB}: ${INSTALLER_SOURCES} rsync --exclude='test*.img' -a * build cd build; dpkg-buildpackage -b -us -uc lintian ${DEB} @@ -34,7 +21,7 @@ VARLIBDIR=$(DESTDIR)/var/lib/proxmox-installer HTMLDIR=$(VARLIBDIR)/html/common .PHONY: install -install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} +install: ${INSTALLER_SOURCES} $(MAKE) -C banner install $(MAKE) -C Proxmox install install -D -m 644 interfaces ${DESTDIR}/etc/network/interfaces -- 2.39.5