diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-14 17:46:15 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-14 17:53:05 -0400 |
commit | 784fd1095745267e3d1865bd9e51328597b0a40e (patch) | |
tree | d7aff49b26488e241bcbcbb3d08980bfc592eaed | |
parent | db75c92c702afc3b45caa731c8190234c97d15e9 (diff) |
avoid unnecessary build
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -207,7 +207,7 @@ stale = [ ! -e $@ ] || [ $$(( $$(date +%s) - $$(date -r $@ +%s) )) -gt 36000 ] | |||
207 | apt-get-update-stamp: FORCE | 207 | apt-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 | ||
210 | rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs apt-get-update-stamp \ | 210 | rootfs/samizdat.patch.btrfs: rootfs/samizdat.seed.btrfs \ |
211 | $(if $(INTERACTIVE_CHROOT),FORCE,patchroot.sh) | 211 | $(if $(INTERACTIVE_CHROOT),FORCE,patchroot.sh) |
212 | ifneq ($(shell id -u),0) | 212 | ifneq ($(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/ |
226 | ifdef INTERACTIVE_CHROOT | 227 | ifdef INTERACTIVE_CHROOT |
227 | chroot $@.mnt bash -i | 228 | chroot $@.mnt bash -i |