mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 09:33:11 +00:00
7bc873580c
This eliminates an external dependency needed for install, and ensures the app can run on Windows.
34 lines
497 B
Makefile
34 lines
497 B
Makefile
GOCMD=go
|
|
GOINSTALL=$(GOCMD) install
|
|
GOBUILD=$(GOCMD) build
|
|
GOTEST=$(GOCMD) test
|
|
GOGET=$(GOCMD) get
|
|
BINARY_NAME=writefreely
|
|
|
|
all : build
|
|
|
|
build: deps
|
|
cd cmd/writefreely; $(GOBUILD) -v
|
|
|
|
test:
|
|
$(GOTEST) -v ./...
|
|
|
|
run:
|
|
$(GOINSTALL) ./...
|
|
$(BINARY_NAME) --debug
|
|
|
|
deps :
|
|
$(GOGET) -v ./...
|
|
|
|
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
|