Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 05c5675

Browse files
committed
Correct the target of the make rule for the dynamic library.
1 parent 9ca47fa commit 05c5675

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ LD_LIBS=-lm
2727
RM_CMD=rm -rf
2828
MKDIR_CMD=mkdir -p
2929

30+
VERSION=$(shell cat ../VERSION)
31+
3032
all: \
3133
cli \
3234
../bin/gherkin_generate_tokens$(EXT) \
@@ -36,7 +38,7 @@ cli: ../bin/gherkin$(EXT)
3638

3739
libs: ../libs/libgherkin.a
3840

39-
libs_so: ../libs/libgherkin.so
41+
libs_so: ../libs/libgherkin.so.$(VERSION)
4042

4143
clean:
4244
$(RM_CMD) ../bin ../objs ../libs
@@ -126,9 +128,9 @@ GHERKIN_CLI_OBJS= \
126128
$(MKDIR_CMD) $(dir $@)
127129
$(AR) $(AR_FLAGS) $@ $(UTILITIES_OBJS) $(PARSER_OBJS) $(AST_OBJS) $(COMPILER_OBJS) $(PICKLES_OBJS) $(EVENT_OBJS)
128130

129-
../libs/libgherkin.so: $(UTILITIES_OBJS) $(PARSER_OBJS) $(AST_OBJS) $(COMPILER_OBJS) $(PICKLES_OBJS) $(EVENT_OBJS) Makefile
131+
../libs/libgherkin.so.$(VERSION): $(UTILITIES_OBJS) $(PARSER_OBJS) $(AST_OBJS) $(COMPILER_OBJS) $(PICKLES_OBJS) $(EVENT_OBJS) Makefile
130132
$(MKDIR_CMD) $(dir $@)
131-
$(CC) $(GCC_SO_FLAGS) -o ../libs/libgherkin.so.$(shell cat ../VERSION) $(UTILITIES_OBJS) $(PARSER_OBJS) $(AST_OBJS) $(COMPILER_OBJS) $(PICKLES_OBJS) $(EVENT_OBJS)
133+
$(CC) $(GCC_SO_FLAGS) $(UTILITIES_OBJS) $(PARSER_OBJS) $(AST_OBJS) $(COMPILER_OBJS) $(PICKLES_OBJS) $(EVENT_OBJS) -o $@
132134

133135
../bin/gherkin_generate_tokens$(EXT): ../libs/libgherkin.a $(GENERATE_TOKEN_OBJS) Makefile
134136
$(MKDIR_CMD) $(dir $@)

0 commit comments

Comments
 (0)