Skip to content

Commit

Permalink
Fix portable variable assignments in Makefile (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Oct 10, 2024
1 parent e1e3911 commit 5257f91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
-include Makefile.local # for optional local options

SHARDS ::= shards # The shards command to use
CRYSTAL ::= crystal # The crystal command to use
SHARDS := shards # The shards command to use
CRYSTAL := crystal # The crystal command to use

SRC_SOURCES ::= $(shell find src lib -name '*.cr' 2>/dev/null)
LIB_SOURCES ::= $(shell find lib -name '*.cr' 2>/dev/null)
SPEC_SOURCES ::= $(shell find spec -name '*.cr' 2>/dev/null)
SRC_SOURCES := $(shell find src lib -name '*.cr' 2>/dev/null)
LIB_SOURCES := $(shell find lib -name '*.cr' 2>/dev/null)
SPEC_SOURCES := $(shell find spec -name '*.cr' 2>/dev/null)

.PHONY: test
test: ## Run test suite
Expand Down
11 changes: 4 additions & 7 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
SHARDS ::= shards
BATS ::= bats
SHARDS := shards
BATS := bats

.PHONY: all
all:
$(BATS) integration_test.bats

.PHONY: update
update:
for i in $(find . -maxdepth 1 -mindepth 1 -type d); do
pushd $i
$(SHARDS) update
popd
done
for i in $$(find . -maxdepth 1 -mindepth 1 -type d); do \
( cd $$i; $(SHARDS) update ); done

0 comments on commit 5257f91

Please sign in to comment.