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

Commit 9f1cd4d

Browse files
committed
gherkin: Add .PHONY targets, formatting
1 parent 05c5675 commit 9f1cd4d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ libs_so: ./include/rule_type.h src/parser.c src/dialect.c $(SRC_FILES) src/Makef
5858

5959
.run: cli $(GHERKIN) $(GOOD_FEATURE_FILES)
6060
$(RUN_GHERKIN) $(GOOD_FEATURE_FILES) | jq . > /dev/null
61-
touch .run
61+
touch $@
6262

6363
./include/rule_type.h: gherkin.berp gherkin-c-rule-type.razor
6464
mono berp/berp.exe -g gherkin.berp -t gherkin-c-rule-type.razor -o $@

src/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GCC_FLAGS=-c -Wall -Werror -g -fPIC
22
CLANG_FLAGS=-c -Wall -Werror -g -fPIC
3-
GCC_SO_FLAGS= -shared
3+
GCC_SO_FLAGS=-shared
44
MINGW_FLAGS=-c -Wall -Werror -g
55

66
ifeq ($(CC),i686-w64-mingw32-gcc)
@@ -30,15 +30,19 @@ MKDIR_CMD=mkdir -p
3030
VERSION=$(shell cat ../VERSION)
3131

3232
all: \
33-
cli \
33+
cli \
3434
../bin/gherkin_generate_tokens$(EXT) \
3535
libs_so
36+
.PHONY: all
3637

3738
cli: ../bin/gherkin$(EXT)
39+
.PHONY: cli
3840

3941
libs: ../libs/libgherkin.a
42+
.PHONY: libs
4043

4144
libs_so: ../libs/libgherkin.so.$(VERSION)
45+
.PHONY: libs_so
4246

4347
clean:
4448
$(RM_CMD) ../bin ../objs ../libs

0 commit comments

Comments
 (0)