From 784fd1095745267e3d1865bd9e51328597b0a40e Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 14 May 2020 17:46:15 -0400 Subject: avoid unnecessary build --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa5b9e7..a14d817 100644 --- a/Makefile +++ b/Makefile @@ -207,7 +207,7 @@ stale = [ ! -e $@ ] || [ $$(( $$(date +%s) - $$(date -r $@ +%s) )) -gt 36000 ] apt-get-update-stamp: FORCE @if $(stale); then set -x; sudo apt-get update && touch $@; fi -rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs apt-get-update-stamp \ +rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs \ $(if $(INTERACTIVE_CHROOT),FORCE,patchroot.sh) ifneq ($(shell id -u),0) $(SUDO_MAKE) $@ @@ -222,6 +222,7 @@ else losetup -f $@~tmp btrfs device add $(get_loop_dev) $@.mnt mount -o compress,rw,remount $@.mnt + $(SUDO_MAKE) apt-get-update-stamp rsync -Ra $(apt_list_files) $@.mnt/ ifdef INTERACTIVE_CHROOT chroot $@.mnt bash -i -- cgit v1.2.3