From 6da342b0d1fb4e34240b9e0656bb9f453bea9739 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 9 Jan 2019 21:47:00 -0500 Subject: [PATCH] Add make build-no-sqlite Supports creating a build without SQLite support compiled in. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 5950dfd..a3bef5a 100644 --- a/Makefile +++ b/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