add makefile

This commit is contained in:
Jesse de Wit
2024-02-05 14:21:59 +01:00
parent 6cbe45629f
commit 68fa5f09b6
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.vscode
lspd
lspd_plugin
lspd_cln_plugin

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
PKG := github.com/breez/lspd
TAG := $(shell git describe --tags --dirty)
release-all: release-lspd release-plugin
release-lspd:
go get $(PKG)
go build -v -trimpath -o lspd -ldflags "-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)
release-plugin:
go get $(PKG)/cln_plugin/cmd
go build -v -trimpath -o lspd_cln_plugin -ldflags="-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cln_plugin/cmd
clean:
rm -f lspd
rm -f lspd_cln_plugin