Skip to content

Commit

Permalink
Fixed initial configuration setup (hyperifyio/project-govm#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Aug 21, 2024
1 parent 483cce4 commit 30d1b14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.DS_Store
.idea
.env
config.yml
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
.PHONY: build run clean tidy certs
.PHONY: build run clean tidy certs config

GOVM_SOURCES := $(shell find ./*.go ./cmd ./internal -type f -iname '*.go' ! -iname '*_test.go')

all: build certs
all: build config

tidy:
go mod tidy

build: govm

govm: $(GOVM_SOURCES) Makefile
config: config.yml certs

config.yml:
@echo "servers: []" > $@

govm: $(GOVM_SOURCES) Makefile config
CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o govm ./cmd/govm

test: Makefile
Expand Down
1 change: 0 additions & 1 deletion config.yml

This file was deleted.

0 comments on commit 30d1b14

Please sign in to comment.