compile two versions: relay-lite and relay-full.

This commit is contained in:
fiatjaf 2020-11-17 18:57:41 -03:00
parent 3404dee7d0
commit 299c596a72
4 changed files with 9 additions and 5 deletions

3
relay/.gitignore vendored
View File

@ -1 +1,2 @@
relay
relay-lite
relay-full

View File

@ -1,2 +1,5 @@
relay: $(shell find . -name "*.go")
go build -ldflags="-s -w" -o ./relay
relay-lite: $(shell find . -name "*.go")
go build -ldflags="-s -w" -o ./relay-lite
relay-full: $(shell find . -name "*.go")
go build -ldflags="-s -w" -tags full -o ./relay-full

View File

@ -1,4 +1,4 @@
// +build postgres
// +build full
package main

View File

@ -1,4 +1,4 @@
// +build !postgres
// +build !full
package main