Skip to content

Commit

Permalink
make version.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed May 8, 2024
1 parent 46b8d59 commit da1a729
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: go version
- name: Install dependencies
run: go mod download
- name: Make version
run: make version.go
- name: Vet
run: go vet -v
- name: Test
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ default: ${PROG}

${PROG}: build

build:

version.go:
/bin/sh make-version.sh $(VERSION)-$(COMMIT) $(APPDATE) $(PROG)

build: version.go
$(GO) build $(GOFLAGS) -o ${PROG}

linux:
Expand All @@ -37,7 +40,7 @@ checkout:
git clone [email protected]:dnstapir/protocols.git checkout

clean:
@rm -f $(PROG) *~
@rm -f $(PROG) *~ version.go

install:
mkdir -p /usr/local/libexec
Expand Down

0 comments on commit da1a729

Please sign in to comment.