Added GO variable to Makefile

This commit is contained in:
CapCreeperGR 2024-05-08 13:00:29 +03:00
parent 0608d1b84b
commit 139e64d682

View File

@ -7,10 +7,13 @@ endif
ifeq ($(SYSCONFDIR),) ifeq ($(SYSCONFDIR),)
SYSCONFDIR := $(PREFIX)/etc SYSCONFDIR := $(PREFIX)/etc
endif endif
ifeq ($(GO),)
GO := /usr/bin/go
endif
build: build:
mkdir -p build mkdir -p build
go build -o build/stormfetch stormfetch $(GO) build -o build/stormfetch stormfetch
install: build/stormfetch config/ install: build/stormfetch config/
mkdir -p $(DESTDIR)$(BINDIR) mkdir -p $(DESTDIR)$(BINDIR)