aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c15fc2bd7212a9e14dfe193f8692fb1bfdab4605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
WORKSPACE_DIR := $(shell pwd)/workspace
CONFIG_FILES := $(shell find trimui_config -type f)
EXTRA_FILES := $(shell find extras -type f)

shell: .build
	docker run -it --rm -v $(WORKSPACE_DIR):/home/trimui/workspace trimui-toolchain /bin/bash
.PHONY: shell

.build: Dockerfile *.patch $(CONFIG_FILES) $(EXTRA_FILES)
	docker build -t trimui-toolchain .
	touch .build

.PHONY: clean
clean:
	docker rmi trimui-toolchain
	rm .build