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