This repository was archived by the owner on Nov 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ LD_LIBS=-lm
2727RM_CMD =rm -rf
2828MKDIR_CMD =mkdir -p
2929
30+ VERSION =$(shell cat ../VERSION)
31+
3032all : \
3133 cli \
3234 ../bin/gherkin_generate_tokens$(EXT) \
@@ -36,7 +38,7 @@ cli: ../bin/gherkin$(EXT)
3638
3739libs : ../libs/libgherkin.a
3840
39- libs_so : ../libs/libgherkin.so
41+ libs_so : ../libs/libgherkin.so. $( VERSION )
4042
4143clean :
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 $@ )
You can’t perform that action at this time.
0 commit comments