NAME ?= $(notdir $(CURDIR)) build: git clone --depth 1 https://github.com/mongoose-examples/$(NAME) cp ./../../../mongoose.[ch] $(NAME)/mongoose/ make -C $(NAME) build clean: rm -rf $(NAME)