mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
Adding FreeBSD compatibility
This commit is contained in:
parent
462fe13540
commit
09563f290f
1 changed files with 11 additions and 1 deletions
12
Makefile
12
Makefile
|
@ -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), '')
|
||||
|
|
Loading…
Add table
Reference in a new issue