Diego Cenarebuild go1.18d1cd09f4 years agoHistory
29 lines · 658 B · Makefile
RawDownload
GOOS=linuxGOFILES=gosecure.goVERSION=0.1.1-1VERSION_NAME=Ugly LoggerBINARY_NAME=gosecure LDFLAGS=-ldflags '-X main.VERSION=$(VERSION) -X "main.VERSION_NAME=$(VERSION_NAME)"' ifeq ($(GOOS), windows)	EXE=.exeendif all: build build:	@GOOS=$(GOOS) go build -o $(BINARY_NAME)$(EXE) $(LDFLAGS) $(GOFILES) run:	@GOOS=$(GOOS) go run $(LDFLAGS) $(GOFILES) .PHONY clean:	@rm -f $(BINARY_NAME) $(BINARY_NAME).exe deb: build	cp man/gosecure.1 deb/$(BINARY_NAME)_$(VERSION)_amd64/usr/share/man/man1 && \	cp $(BINARY_NAME) deb/$(BINARY_NAME)_$(VERSION)_amd64/opt/gosecure/bin && \	cd deb && \	dpkg-deb --build $(BINARY_NAME)_$(VERSION)_amd64 ; \	cd -

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t