Mark package build root as intermediate instead of secondary, because all intermediat...
authorDaniel Abrecht <public@danielabrecht.ch>
Tue, 9 Jun 2020 20:06:27 +0000 (20:06 +0000)
committerDaniel Abrecht <public@danielabrecht.ch>
Tue, 9 Jun 2020 20:06:27 +0000 (20:06 +0000)
chroot-build-helper/real-makefile

index 9a6338f554926ec36c6088beb76697926db975c0..705a8327ce41a9e88a9fd04177cc8049c79f0a42 100644 (file)
@@ -4,9 +4,6 @@ include $(GENERATED_DEPENDENCIES_FILE)
 # Only one thing at a time can chroot into the buildenv
 .NOTPARALLEL:
 
-# Don't needlessly rebuild packages just because the build environments root folder got touched
-.SECONDARY: build-env/$(DISTRO)/$(RELEASE)/rootfs
-
 CURDIR=$(realpath .)
 
 UEXEC=../build/bin/uexec
@@ -40,6 +37,9 @@ build-env/$(DISTRO)/$(RELEASE)/debootstrap/usr/share/debootstrap/scripts/$(RELEA
 $(UEXEC):
        make -C .. build/bin/usernsexec
 
+# Don't needlessly rebuild packages just because the build environments root folder got touched
+.INTERMEDIATE: build-env/$(DISTRO)/$(RELEASE)/rootfs
+
 build-env/$(DISTRO)/$(RELEASE)/rootfs: build-env/.dir build-env/$(DISTRO)/$(RELEASE)/debootstrap/usr/share/debootstrap/scripts/$(RELEASE) $(CHROOT_DUMMY_PACKAGES_FILES) $(UEXEC)
        mkdir -p "$@.tmp"
        uexec rm -rf "$(CURDIR)/$@.tmp"