Skip to content

Commit 228fb9e

Browse files
committed
multi: add migrate-db command
1 parent 67e363e commit 228fb9e

File tree

5 files changed

+638
-32
lines changed

5 files changed

+638
-32
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ XARGS := xargs -L 1
2222

2323
VERSION_TAG = $(shell git describe --tags)
2424

25+
DEV_TAGS = kvdb_etcd kvdb_postgres
26+
RELEASE_TAGS = $(DEV_TAGS)
27+
2528
BUILD_SYSTEM = darwin-amd64 \
2629
linux-386 \
2730
linux-amd64 \
@@ -49,7 +52,7 @@ endif
4952
make_ldflags = $(2) -X $(PKG).Commit=$(COMMIT)
5053

5154
DEV_GCFLAGS := -gcflags "all=-N -l"
52-
LDFLAGS := -ldflags "$(call make_ldflags, ${tags}, -s -w)"
55+
LDFLAGS := -ldflags "$(call make_ldflags, $(DEV_TAGS), -s -w)"
5356
DEV_LDFLAGS := -ldflags "$(call make_ldflags, $(DEV_TAGS))"
5457

5558
# For the release, we want to remove the symbol table and debug information (-s)
@@ -83,7 +86,7 @@ build:
8386

8487
install:
8588
@$(call print, "Installing lndinit.")
86-
$(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)
89+
$(GOINSTALL) -tags="$(DEV_TAGS)" $(LDFLAGS) $(PKG)
8790

8891
release-install:
8992
@$(call print, "Installing release lndinit.")

0 commit comments

Comments
 (0)