1 2 3 4 5 6 7
fsmgr := $(shell which fsmgr) sudo := $(shell [ "$$(id -u)" = 0 ] || echo sudo) rootfs = samizdat all: $(sudo) $(fsmgr) build $(rootfs)