aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: fb073f448bcf9e13b593a52fc3ab79181ea59ee5 (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 build_toolchain.sh env-setup.sh extra_packages.txt $(CONFIG_FILES) $(EXTRA_FILES)
	docker build -t trimui-toolchain .
	touch .build

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