From 41dfff23c6076d77bf9889a0f4fe692e9f10eb66 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 13 Jun 2020 01:38:13 -0400 Subject: Makefile: automatically install build-deps --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6337177..7e03206 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,17 @@ binary = xmonad-config-exe sudo := $(shell [ "$(id -u)" = 0 ] || echo sudo) -build: +build: install-build-deps-stamp stack build +install-build-deps-stamp: build-deps.control + $(sudo) apt --no-upgrade install equivs libdpkg-perl + $(sudo) ./src/mk-build-deps \ + --root-cmd sudo \ + --install --remove \ + $^ + touch $@ + install: build stack install [ -d ~/.xmonad ] || mkdir ~/.xmonad -- cgit v1.2.3