Skip to content

Commit

Permalink
fix: use correct if syntax in makefile
Browse files Browse the repository at this point in the history
Signed-off-by: lvlcn-t <[email protected]>
  • Loading branch information
lvlcn-t committed Oct 17, 2024
1 parent aab805d commit 5f4087a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lint: ### Runs linters on all modules

.PHONY: example
example: ### Runs the example for [MODULE]
@if [ -z "$(MODULE)" ]; then \
@if [[ -z "$(MODULE)" ]]; then \
echo "No module found"; \
exit 1; \
fi
Expand All @@ -44,7 +44,7 @@ example: ### Runs the example for [MODULE]

.PHONY: tag
tag: ### Tags the [MODULE] with [VERSION]
@if [ -z "$(VERSION)" || -z "$(MODULE)" ]; then \
@if [[ -z "$(VERSION)" || -z "$(MODULE)" ]]; then \
echo "No version or module found"; \
exit 1; \
fi
Expand All @@ -61,7 +61,7 @@ tag: ### Tags the [MODULE] with [VERSION]

.PHONY: tag-all
tag-all: ### Tags all modules with [VERSION]
@if [ -z "$(VERSION)" ]; then \
@if [[ -z "$(VERSION)" ]]; then \
echo "No version found"; \
exit 1; \
fi
Expand All @@ -73,7 +73,7 @@ tag-all: ### Tags all modules with [VERSION]
fi
@echo ""
@for module in $(MODULES); do \
if [ $$(basename $$module) == "example" ]; then \
if [[ $$(basename $$module) == "example" ]]; then \
continue; \
fi; \
tag=$$(basename $$module)/$(VERSION); \
Expand Down

0 comments on commit 5f4087a

Please sign in to comment.