github.com/256dpi/max-go@v0.7.0/Makefile (about)

     1  .PHONY: lib verify
     2  
     3  lib:
     4  	rm -rf ./lib
     5  	rm -rf ./sdk
     6  	git clone https://github.com/Cycling74/max-sdk-base.git sdk
     7  	mkdir -p lib/max lib/msp
     8  	cp -r sdk/c74support/max-includes/ ./lib/max
     9  	cp -r sdk/c74support/msp-includes/ ./lib/msp
    10  	rm -rf sdk
    11  
    12  fmt:
    13  	go fmt ./...
    14  	go vet ./...
    15  	golint ./...
    16  	clang-format  -style "{BasedOnStyle: Google, ColumnLimit: 120}" -i *.c *.h
    17  
    18  install:
    19  	go install ./cmd/maxgo
    20  
    21  build: install
    22  	cd example; maxgo -name maxgo -install maxgo
    23  
    24  build-cross: install
    25  	cd example; maxgo -name maxgo -cross -install maxgo
    26  
    27  verify:
    28  	clang verify/verify.c -o verify/verify
    29  	cd verify; ./verify