Skip to content

Commit 9bc441e

Browse files
committed
fixed up git pattern matching to handle release/ branches
1 parent 76411aa commit 9bc441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ $(BUILD)/lexer.o: frontends/lexer.c $(LEXHEADERS)
220220

221221
$(BUILD)/version.o: version.c version.h FORCE
222222
$(eval gitbranch=$(shell git rev-parse --abbrev-ref HEAD))
223-
$(CC) $(CFLAGS) -DGITREV=$(shell git describe --tags --always) $(if $(filter master,$(gitbranch)),,-DGITBRANCH=$(gitbranch)) -o $@ -c $<
223+
$(CC) $(CFLAGS) -DGITREV=$(shell git describe --tags --always) $(if $(filter release/%,$(patsubst master,release/master,$(gitbranch))),,-DGITBRANCH=$(gitbranch)) -o $@ -c $<
224224

225225
$(BUILD)/%.o: %.c
226226
$(CC) -MMD -MP $(CFLAGS) -o $@ -c $<

0 commit comments

Comments
 (0)