WORKSPACE_DIR := $(shell pwd)/workspace CONFIG_FILES := $(shell find trimui_config -type f) shell: .build docker run -it --rm -v $(WORKSPACE_DIR):/home/trimui/workspace trimui-toolchain /bin/bash .PHONY: shell .build: Dockerfile extract_rootfs.sh *.patch $(CONFIG_FILES) docker build -t trimui-toolchain . touch .build .PHONY: clean clean: docker rmi trimui-toolchain rm .build