Skip to content

Commit 81e4482

Browse files
authored
feat: use native conditionals for make (#132)
1 parent 9ad8fc6 commit 81e4482

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ else
4949
endif
5050

5151
smoke-test:
52-
@if [ -f credentials.json ]; then \
53-
go run ./... translations list -c credentials.json; \
54-
fi
52+
ifneq (,$(wildcard credentials.json))
53+
go run ./... translations list -c credentials.json
54+
endif
55+
@exit 0
5556

5657
verify-version:
5758
ifneq ($(TOOL_VERSION),$(MOD_VERSION))
5859
@echo 'Mismatched go versions'
5960
@exit 1
6061
endif
62+
@exit 0
6163

6264
test: verify-version tidy unit-tests smoke-test

0 commit comments

Comments
 (0)