Skip to content

Commit a8ba818

Browse files
committed
Simplify Makefile
No need to include in-tree build recipe for such a generic `Makefile`.
1 parent 2a102e0 commit a8ba818

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

Makefile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
PG_CONFIG ?= pg_config
2-
31
EXTENSION = postgresql_extension_template
42
MODULE_big = postgresql_extension_template
53
OBJS = postgresql_extension_template.o
@@ -12,14 +10,6 @@ REGRESS = postgresql_extension_template
1210
# And uncomment the following line:
1311
#DOCS = extension_name.md
1412

15-
USE_PGXS = 1
16-
ifdef USE_PGXS
17-
PGXS := $(shell $(PG_CONFIG) --pgxs)
18-
include $(PGXS)
19-
else
20-
subdir = contrib/pg_show_plans
21-
top_builddir = ../..
22-
include $(top_builddir)/src/Makefile.global
23-
include $(top_srcdir)/contrib/contrib-global.mk
24-
endif
25-
13+
PG_CONFIG = pg_config
14+
PGXS := $(shell $(PG_CONFIG) --pgxs)
15+
include $(PGXS)

0 commit comments

Comments
 (0)