GNU and BSD Make compatible makefile
This commit is contained in:
parent
62b4ca67a0
commit
e80115cf69
3
BSDmakefile
Normal file
3
BSDmakefile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
VERSION != git describe --tags
|
||||||
|
|
||||||
|
include common.mk
|
3
GNUmakefile
Normal file
3
GNUmakefile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
VERSION = $(shell git describe --tags)
|
||||||
|
|
||||||
|
include common.mk
|
4
common.mk
Normal file
4
common.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
LDFLAGS = -X main.version=$(VERSION)
|
||||||
|
|
||||||
|
goircd: *.go
|
||||||
|
go build -ldflags "$(LDFLAGS)"
|
Loading…
Reference in New Issue
Block a user