writefreely/Makefile

38 lines
637 B
Makefile
Raw Normal View History

GITREV=`git describe --tags`
LDFLAGS=-ldflags="-X 'github.com/writeas/writefreely.softwareVer=$(GITREV)'"
GOCMD=go
GOINSTALL=$(GOCMD) install $(LDFLAGS)
GOBUILD=$(GOCMD) build $(LDFLAGS)
GOTEST=$(GOCMD) test $(LDFLAGS)
2018-11-08 18:56:14 +01:00
GOGET=$(GOCMD) get
BINARY_NAME=writefreely
all : build
2018-11-08 18:56:14 +01:00
build: deps
2018-11-08 19:02:15 +01:00
cd cmd/writefreely; $(GOBUILD) -v
test:
$(GOTEST) -v ./...
run:
$(GOINSTALL) ./...
$(BINARY_NAME) --debug
2018-11-08 18:56:14 +01:00
deps :
2018-11-08 19:02:15 +01:00
$(GOGET) -v ./...
2018-11-08 18:56:14 +01:00
install : build
cmd/writefreely/$(BINARY_NAME) --gen-keys
cd less/; $(MAKE) install $(MFLAGS)
ui : force_look
cd less/; $(MAKE) $(MFLAGS)
clean :
cd less/; $(MAKE) clean $(MFLAGS)
force_look :
true