Add make build-no-sqlite
Supports creating a build without SQLite support compiled in.
This commit is contained in:
parent
7c9bd10f73
commit
6da342b0d1
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -15,6 +15,9 @@ all : build
|
|||
build: assets deps
|
||||
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'
|
||||
|
||||
build-no-sqlite: assets-no-sqlite deps-no-sqlite
|
||||
cd cmd/writefreely; $(GOBUILD) -v -o $(BINARY_NAME)
|
||||
|
||||
build-linux: deps
|
||||
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
$(GOGET) -u github.com/karalabe/xgo; \
|
||||
|
@ -46,6 +49,9 @@ run: dev-assets
|
|||
deps :
|
||||
$(GOGET) -tags='sqlite' -v ./...
|
||||
|
||||
deps-no-sqlite:
|
||||
$(GOGET) -v ./...
|
||||
|
||||
install : build
|
||||
cmd/writefreely/$(BINARY_NAME) --gen-keys
|
||||
cd less/; $(MAKE) install $(MFLAGS)
|
||||
|
@ -79,6 +85,9 @@ ui : force_look
|
|||
assets : generate
|
||||
go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql sqlite.sql
|
||||
|
||||
assets-no-sqlite: generate
|
||||
go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql
|
||||
|
||||
dev-assets : generate
|
||||
go-bindata -pkg writefreely -ignore=\\.gitignore -debug schema.sql sqlite.sql
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue