summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-10-06 14:36:34 -0400
committeru <u@billy>2023-11-17 08:43:13 -0500
commit0cae36debc63137c0e8eee8de929facfdcfa21cc (patch)
tree09556f2ae43a22d9b12aca16b47b33d0dc6b479b /Makefile
parent2e4dc3c137f549608693ed7285dba55a4534173f (diff)
Makefile: use apt instead of apt-get when available
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5d16a5a..754444b 100644
--- a/Makefile
+++ b/Makefile
@@ -246,9 +246,11 @@ apt_list_files = $(addprefix /./var/lib/apt/lists/, \
246 246
247stale = [ ! -e $@ ] || [ $$(( $$(date +%s) - $$(date -r $@ +%s) )) -gt 36000 ] 247stale = [ ! -e $@ ] || [ $$(( $$(date +%s) - $$(date -r $@ +%s) )) -gt 36000 ]
248 248
249apt = $(shell which apt || which apt-get)
250
249.PHONY: apt-get-update-stamp 251.PHONY: apt-get-update-stamp
250apt-get-update-stamp: 252apt-get-update-stamp:
251 @if $(stale); then set -x; sudo apt-get update && touch $@; fi 253 @if $(stale); then set -x; sudo $(apt) update && touch $@; fi
252 254
253samizdat.iso: patched.iso 255samizdat.iso: patched.iso
254 cp --reflink $< $@ 256 cp --reflink $< $@