mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-25 23:29:46 +00:00
29 lines
449 B
Makefile
29 lines
449 B
Makefile
GC = go build -ldflags "-s -w"
|
|
TAG := $(shell git describe --tags)
|
|
|
|
NAME = bedrocktool_${TAG}
|
|
SRCS = $(wildcard *.go)
|
|
|
|
all: windows linux
|
|
|
|
.PHONY: all clean windows linux mac
|
|
|
|
windows: $(NAME).exe
|
|
linux: $(NAME)-linux
|
|
mac: $(NAME)-mac
|
|
|
|
|
|
$(NAME).exe: $(SRCS)
|
|
GOOS=windows $(GC) -o $@
|
|
|
|
$(NAME)-linux: $(SRCS)
|
|
GOOS=linux $(GC) -o $@
|
|
|
|
$(NAME)-mac: $(SRCS) # possibly broken
|
|
GOOS=darwin $(GC) -o $@
|
|
|
|
|
|
|
|
|
|
clean:
|
|
rm $(NAME).exe $(NAME)-linux $(NAME)-mac
|