]> git.proxmox.com Git - pve-installer.git/commitdiff
buildsys: depend on full known-to-git file list for installer sources
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Apr 2023 14:30:55 +0000 (16:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 07:36:58 +0000 (09:36 +0200)
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 <t.lamprecht@proxmox.com>
Makefile

index 6ecb7e61b2ccb2d03dab4dcda28a26767d2e9280..6c95c71f26d1896ea2194c18b99472683b426951 100644 (file)
--- 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