Skip to content

Commit

Permalink
Make the Makefile like other contrib modules.
Browse files Browse the repository at this point in the history
This makes it easier to unpack a temporal release into the `contrib` directory
of an unpacked PostgreSQL source tarball and to install it like any other
contrib module.
  • Loading branch information
theory authored and jeff-davis-aster committed Jun 1, 2011
1 parent 2efdd15 commit ed5855c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ MODULES = period
DATA_built = period.sql
DATA = uninstall_period.sql

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

else
subdir = contrib/temporal
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

0 comments on commit ed5855c

Please sign in to comment.