1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

Merge pull request #36 from hackacad/master

Adding FreeBSD compatibility
This commit is contained in:
Annika Hannig 2021-03-22 11:56:57 +01:00 committed by GitHub
commit b47db12c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,9 +23,16 @@ LOCAL_RPMS=RPMS
UNAME=$(shell uname)
ifeq ($(UNAME), Darwin)
TARGET=osx
else
endif
ifeq ($(UNAME), FreeBSD)
TARGET=freebsd
endif
ifeq ($(UNAME), Linux)
TARGET=linux
endif
ifneq ($(UNAME),$(filter $(UNAME),Darwin FreeBSD Linux))
$(error error: Unkown OS )
endif
all: $(TARGET)
@echo "Built $(VERSION) @ $(TARGET)"
@ -36,6 +43,9 @@ osx:
linux:
GO111MODULE=on GOARCH=$(ARCH) GOOS=linux go build -o $(PROG)-linux-$(ARCH)
freebsd:
GO111MODULE=on GOARCH=$(ARCH) GOOS=freebsd go build -o $(PROG)-freebsd-$(ARCH)
build_server:
ifeq ($(BUILD_SERVER), '')