pututmpent: pututmpent.c $(CC) -Wall -o $@ $^ [ -w / ] || { echo "can't set permissions as you're not root (hint: run 'make' as root)" >&2; exit 1; } chown root:root $@ chmod 1755 $@ clean: $(RM) pututmpent # In order to make it clear that make has failed, ensure pututmpent # is not created if the pre-chown+chmod check fails. .DELETE_ON_ERROR: