fsmgr := $(shell which fsmgr) sudo := $(shell [ "$$(id -u)" = 0 ] || echo sudo) rootfs = samizdat all: $(sudo) $(fsmgr) build $(rootfs)