MODULE_big = pgmemcache
PGMC_VERSION = 1.1

OBJS = pgmemcache.o
DATA_built = $(MODULE_big).sql
SHLIB_LINK = -lmemcache

PGXS := $(shell pg_config --pgxs)
include $(PGXS)

# Build a release tarball. "hg archive" includes a single HG metadata
# for some reason, so we have to manually exclude it. To make a release,
# update PGMC_VERSION, adjust the version number in the README, and
# add an entry to NEWS.
#
dist:
	hg archive -t tgz -X '.hg_archival.txt' ../pgmemcache_$(PGMC_VERSION).tar.gz

