From 32c0a0d3b0307acd326c5415d515d79d17e0f624 Mon Sep 17 00:00:00 2001 From: u Date: Mon, 10 Jan 2022 16:59:42 -0500 Subject: Makefile cleanup --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b146673..1ebeb15 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ binary = fsmgr +executables = ~/.local/bin/$(binary) ./selfstrap ./btrfs-shrink -sudo := $(shell [ "$(id -u)" = 0 ] || echo sudo) +sudo != [ "$(id -u)" = 0 ] || echo sudo +.PHONY: build install build: stack build -executables = ~/.local/bin/$(binary) ./selfstrap ./btrfs-shrink - install: build stack install $(sudo) install $(executables) /usr/local/bin -- cgit v1.2.3