github.com/loafoe/cli@v7.1.0+incompatible/integration/assets/test_plugin/Makefile (about)

     1  GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")
     2  
     3  LD_FLAGS_LINUX = -extldflags \"-static\"
     4  
     5  build: out/test_plugin
     6  
     7  clean:
     8  	rm -rf out
     9  
    10  out/test_plugin: $(GOSRC)
    11  	CGO_ENABLED=0 go build \
    12  	  -ldflags "$(LD_FLAGS_LINUX)" -o out/test_plugin .
    13  
    14  install: build
    15  	cf install-plugin -f out/test_plugin
    16  	cf plugins