summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1620c85253bb3cf6c771225e3c36613997ad206c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export GOOS=linux
export GOARCH=arm
export GOARM=7

USB_ROOT=/Volumes/MP_SD

GOSOURCES:=$(shell find . -name *.go)

all: bin/cvend-ipp bin/pic32-ipp

clean:
	rm -r bin

bin/%: ${GOSOURCES}
	mkdir -p bin
	go build -o $@ ./cmd/$*

usb: autorun.sh bin/cvend-ipp bin/pic32-ipp
	install autorun.sh ${USB_ROOT}/
	install -d ${USB_ROOT}/bin/
	install bin/cvend-ipp ${USB_ROOT}/bin/
	install bin/pic32-ipp ${USB_ROOT}/bin/