A quick and dirty implementation
This commit is contained in:
parent
3682810e27
commit
f6e9c70eb3
352 changed files with 242881 additions and 0 deletions
28
vendor/github.com/warthog618/gpiod/Makefile
generated
vendored
Normal file
28
vendor/github.com/warthog618/gpiod/Makefile
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
GOCMD=go
|
||||
GOBUILD=$(GOCMD) build
|
||||
GOCLEAN=$(GOCMD) clean
|
||||
|
||||
VERSION ?= $(shell git describe --tags --always --dirty 2> /dev/null )
|
||||
LDFLAGS=-ldflags "-X=main.version=$(VERSION)"
|
||||
|
||||
spis=$(patsubst %.go, %, $(wildcard example/spi/*/*.go))
|
||||
examples=$(patsubst %.go, %, $(wildcard example/*/*.go))
|
||||
bins= $(spis) $(examples)
|
||||
|
||||
cmds=$(patsubst %.go, %, $(wildcard cmd/gpio*/gpio*.go))
|
||||
|
||||
all: tools $(bins)
|
||||
|
||||
$(cmds) : % : %.go
|
||||
cd $(@D); \
|
||||
$(GOBUILD) $(LDFLAGS)
|
||||
|
||||
$(bins) : % : %.go
|
||||
cd $(@D); \
|
||||
$(GOBUILD)
|
||||
|
||||
clean:
|
||||
$(GOCLEAN) ./...
|
||||
|
||||
tools: $(cmds)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue