microo8 / plgo

easily create postgresql extensions in golang; moved to gitlab.com/microo8/plgo
292 stars 23 forks source link

There is no rule for building the target “main.bc” required for “all”. Stop #23

Closed AoAnima closed 5 years ago

AoAnima commented 5 years ago

Hi! Vlado, I'm sorry. When i do

$ cd build
$ sudo make install,

then a message appears: make: *** There is no rule for building the target “main.bc” required for “all”. Stop.

$ more Makefile
EXTENSION = main
DATA = main--0.1.sql  # script files to install
# REGRESS = main_test     # our test script file (without extension)
MODULES = main          # our c module file to build

# postgres build stuff
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

How to fix it tell me?