X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=blobdiff_plain;f=Makefile;h=f2e8350e84cf11f1e7700663fb1b3be56d342936;hp=add40dee267cd1b3e9b6fded4d6e04579fe539c9;hb=9663a29178ef4049bb38cab6adc3f56d13ddf70d;hpb=0cbb8205225d8f69ff3604b7d067fa96ce6b0c03 diff --git a/Makefile b/Makefile index add40de..f2e8350 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,15 @@ -subdir = contrib/plantuner -top_builddir = ../.. -include $(top_builddir)/src/Makefile.global - MODULE_big = plantuner DOCS = README.plantuner REGRESS = plantuner OBJS=plantuner.o +ifdef USE_PGXS +PGXS = $(shell pg_config --pgxs) +include $(PGXS) +else +subdir = contrib/plantuner +top_builddir = ../.. +include $(top_builddir)/src/Makefile.global + include $(top_srcdir)/contrib/contrib-global.mk +endif