Navigation Menu

Skip to content

Commit

Permalink
Extract version from .control
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 31, 2015
1 parent 3a6fb78 commit a4e0200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -2,7 +2,10 @@ MODULE_big = pgroonga
SRCS = pgroonga.c pgroonga_types.c
OBJS = $(SRCS:.c=.o)
EXTENSION = pgroonga
DATA = pgroonga--0.2.0.sql
EXTENSION_VERSION = \
$(shell grep default_version $(EXTENSION).control | \
sed -e "s/^.*'\([0-9.]*\)'$$/\1/")
DATA = pgroonga--$(EXTENSION_VERSION).sql
PG_CPPFLAGS = $(shell pkg-config --cflags groonga)
SHLIB_LINK = $(shell pkg-config --libs groonga)
# REGRESS = pgroonga update bench
Expand Down

0 comments on commit a4e0200

Please sign in to comment.