Skip to content

Commit

Permalink
Add go module file and make all rule
Browse files Browse the repository at this point in the history
Improves the build system by adding a go.mod file and adding a make all
rule together with optional GOARGS. This is required for a build in OBS
  • Loading branch information
grisu48 authored and [email protected] committed Mar 10, 2021
1 parent 8f39e80 commit bc23662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
default: disko-san
default: all
all: disko-san

PREFIX=/usr/local/bin
GOARGS=

disko-san: cmd/disko-san/disko-san.go cmd/disko-san/chunk.go cmd/disko-san/disk.go cmd/disko-san/progress.go
go build -o $@ $^
go build $(GOARGS) -o $@ $^

install: disko-san
install disko-san $(PREFIX)
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/grisu48/disko-san

go 1.14

0 comments on commit bc23662

Please sign in to comment.