From 02575155cef49239e614247422ce33b87c5182e6 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 14 May 2014 11:30:41 +0200 Subject: [PATCH] Complain if script is sourced in psql, rather than via CREATE EXTENSION --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7150554..393746d 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) $(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql cartodb_version.sql Makefile - : > $@ + echo '\echo Use "CREATE EXTENSION cartodb" to load this file. \quit' > $@ cat $(CDBSCRIPTS) | \ sed -e 's/\> $@