Skip to content

Commit

Permalink
Make extension makefile work with different pg directory structures (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan authored Sep 19, 2024
1 parent ba5fab0 commit f53459f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/extension-testing/exts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ $(EXT_FNAME).zip: MANIFEST.toml $(EDGEQL_SRCS) $(EXTRA_FILES) $(SQL_STAMP) Makef
mkdir build/$(EXT_FNAME)

rm -rf build/$(SQL_DIR)
cp -r $(PWD)/build/out/$(PG_DIR) build/$(SQL_DIR)
mkdir build/$(SQL_DIR)

cp -r $(PWD)/build/out/$(shell $(PG_CONFIG) --pkglibdir) build/$(SQL_DIR)/lib
cp -r $(PWD)/build/out/$(shell $(PG_CONFIG) --sharedir) build/$(SQL_DIR)/share

cp -r build/$(SQL_DIR) build/$(EXT_FNAME)/$(SQL_DIR)
cp $(EDGEQL_SRCS) build/$(EXT_FNAME)
if [ -n "$(EXTRA_FILES)" ]; then cp $(EXTRA_FILES) build/$(EXT_FNAME); fi
Expand Down

0 comments on commit f53459f

Please sign in to comment.