|
|
@ -9,9 +9,13 @@ GOGET=$(GOCMD) get |
|
|
|
BINARY_NAME=writefreely
|
|
|
|
BINARY_NAME=writefreely
|
|
|
|
DOCKERCMD=docker
|
|
|
|
DOCKERCMD=docker
|
|
|
|
IMAGE_NAME=writeas/writefreely
|
|
|
|
IMAGE_NAME=writeas/writefreely
|
|
|
|
|
|
|
|
TMPBIN=./tmp
|
|
|
|
|
|
|
|
|
|
|
|
all : build |
|
|
|
all : build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci: ci-assets deps |
|
|
|
|
|
|
|
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'
|
|
|
|
|
|
|
|
|
|
|
|
build: assets deps |
|
|
|
build: assets deps |
|
|
|
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'
|
|
|
|
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'
|
|
|
|
|
|
|
|
|
|
|
@ -107,8 +111,18 @@ generate : |
|
|
|
$(GOGET) -u github.com/jteeuwen/go-bindata/...; \
|
|
|
|
$(GOGET) -u github.com/jteeuwen/go-bindata/...; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(TMPBIN): |
|
|
|
|
|
|
|
mkdir -p $(TMPBIN)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(TMPBIN)/go-bindata: deps $(TMPBIN) |
|
|
|
|
|
|
|
$(GOBUILD) -o $(TMPBIN)/go-bindata github.com/jteeuwen/go-bindata/go-bindata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci-assets : $(TMPBIN)/go-bindata |
|
|
|
|
|
|
|
$(TMPBIN)/go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql sqlite.sql
|
|
|
|
|
|
|
|
|
|
|
|
clean : |
|
|
|
clean : |
|
|
|
-rm -rf build
|
|
|
|
-rm -rf build
|
|
|
|
|
|
|
|
-rm -rf tmp
|
|
|
|
cd less/; $(MAKE) clean $(MFLAGS)
|
|
|
|
cd less/; $(MAKE) clean $(MFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
force_look : |
|
|
|
force_look : |
|
|
|