SHELL=/bin/bash -o pipefail

define builder
  ./build.sh $1 | sed -e 's/\033[[][0-9][0-9]*m//g'
endef

.PHONY: upload uploadfs build all

upload:
	$(call builder, -u)

uploadfs:
	$(call builder, -f)

build:
	$(call builder, -b)

all:
	$(call builder, -a)

pc:
	$(call builder, -p APPLE)

clean:
	$(call builder, -c)
