export GOOS=linux export GOARCH=arm export GOARM=7 USB_ROOT=/Volumes/MP_SD GOSOURCES:=$(shell find . -name *.go) BINS:=bin/cvend-ipp bin/pic32-ipp bin/beep all: ${BINS} clean: rm -r bin bin/%: ${GOSOURCES} mkdir -p bin go build -o $@ ./cmd/$* usb: autorun.sh ${BINS} install autorun.sh ${USB_ROOT}/ install -d ${USB_ROOT}/bin/ install ${BINS} ${USB_ROOT}/bin/