forked from tensorchord/VectorChord
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 682 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export PG_CONFIG ?= pg_config
PKGLIBDIR := $(shell $(PG_CONFIG) --pkglibdir)
SHAREDIR := $(shell $(PG_CONFIG) --sharedir)
CP_R ?= cp -r
MKDIR_P ?= mkdir -p
.PHONY: all build clippy install uninstall
all: build
build:
cargo run -p xtask -- build
clippy:
cargo run -p xtask -- clippy
install:
$(MKDIR_P) $(DESTDIR)$(PKGLIBDIR) && \
$(CP_R) ./build/pkglibdir/. $(DESTDIR)$(PKGLIBDIR) && \
$(MKDIR_P) $(DESTDIR)$(SHAREDIR) && \
$(CP_R) ./build/sharedir/. $(DESTDIR)$(SHAREDIR)
uninstall:
$(RM) $(wildcard $(DESTDIR)$(PKGLIBDIR)/vchord.*) && \
$(RM) $(wildcard $(DESTDIR)$(SHAREDIR)/extension/vchord.*) && \
$(RM) $(wildcard $(DESTDIR)$(SHAREDIR)/extension/vchord--*.sql)