summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-14 17:46:15 -0400
committerAndrew Cady <d@jerkface.net>2020-05-14 17:53:05 -0400
commit784fd1095745267e3d1865bd9e51328597b0a40e (patch)
treed7aff49b26488e241bcbcbb3d08980bfc592eaed
parentdb75c92c702afc3b45caa731c8190234c97d15e9 (diff)
avoid unnecessary build
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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 ]
207apt-get-update-stamp: FORCE 207apt-get-update-stamp: FORCE
208 @if $(stale); then set -x; sudo apt-get update && touch $@; fi 208 @if $(stale); then set -x; sudo apt-get update && touch $@; fi
209 209
210rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs apt-get-update-stamp \ 210rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs \
211 $(if $(INTERACTIVE_CHROOT),FORCE,patchroot.sh) 211 $(if $(INTERACTIVE_CHROOT),FORCE,patchroot.sh)
212ifneq ($(shell id -u),0) 212ifneq ($(shell id -u),0)
213 $(SUDO_MAKE) $@ 213 $(SUDO_MAKE) $@
@@ -222,6 +222,7 @@ else
222 losetup -f $@~tmp 222 losetup -f $@~tmp
223 btrfs device add $(get_loop_dev) $@.mnt 223 btrfs device add $(get_loop_dev) $@.mnt
224 mount -o compress,rw,remount $@.mnt 224 mount -o compress,rw,remount $@.mnt
225 $(SUDO_MAKE) apt-get-update-stamp
225 rsync -Ra $(apt_list_files) $@.mnt/ 226 rsync -Ra $(apt_list_files) $@.mnt/
226ifdef INTERACTIVE_CHROOT 227ifdef INTERACTIVE_CHROOT
227 chroot $@.mnt bash -i 228 chroot $@.mnt bash -i