Skip to content

Commit

Permalink
move these out into vars
Browse files Browse the repository at this point in the history
  • Loading branch information
radiosilence committed Apr 2, 2024
1 parent 5211ae6 commit 10b3dbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
PKGOS=linux
PKGARCH=amd64
PKGNAME=nano-web
PKGVERSION:=$(shell ./scripts/get-version.sh)
PKGRELEASE=$(PKGNAME)_$(PKGVERSION)
Expand All @@ -8,7 +10,7 @@ pkg-clean:
rm -rf $(RELEASEDIR)

pkg-build:
GOOS=linux GOARCH=amd64 go build -o $(PKGDIR)/$(PKGNAME) main.go
GOOS=$(PKGOS) GOARCH=$(PKGARCH) go build -o $(PKGDIR)/$(PKGNAME) main.go

pkg-create: pkg-clean
mkdir -p $(PKGDIR)/sysroot
Expand Down

0 comments on commit 10b3dbc

Please sign in to comment.