Skip to content

Commit 778b52f

Browse files
pdecatkaidaguerre
authored andcommitted
Update makefile to install into STEAMPIPE_INSTALL_DIR if set
(cherry picked from commit 44d62d4)
1 parent d3fa4e5 commit 778b52f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Makefile
22

3+
STEAMPIPE_INSTALL_DIR ?= ~/.steampipe
4+
35
PLATFORM=$(shell uname)
46

57
install: build
68
if test -d ~/.steampipe/db/14.2.0; then \
7-
cp ./build-$(PLATFORM)/steampipe_postgres_fdw--1.0.sql ~/.steampipe/db/14.2.0/postgres/share/postgresql/extension/; \
8-
cp ./build-$(PLATFORM)/steampipe_postgres_fdw.control ~/.steampipe/db/14.2.0/postgres/share/postgresql/extension/; \
9-
cp ./build-$(PLATFORM)/steampipe_postgres_fdw.so ~/.steampipe/db/14.2.0/postgres/lib/postgresql/; \
9+
cp ./build-$(PLATFORM)/steampipe_postgres_fdw--1.0.sql $(STEAMPIPE_INSTALL_DIR)/db/14.2.0/postgres/share/postgresql/extension/; \
10+
cp ./build-$(PLATFORM)/steampipe_postgres_fdw.control $(STEAMPIPE_INSTALL_DIR)/db/14.2.0/postgres/share/postgresql/extension/; \
11+
cp ./build-$(PLATFORM)/steampipe_postgres_fdw.so $(STEAMPIPE_INSTALL_DIR)/db/14.2.0/postgres/lib/postgresql/; \
1012
fi
1113

1214
build: prebuild.go

0 commit comments

Comments
 (0)