Skip to content

Commit 2f5cdab

Browse files
committed
updated Makefile
1 parent f1f7dde commit 2f5cdab

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Makefile

+15-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,21 @@ CONF_FILES := $(shell sed "s/\#.*//; /^[[:space:]]*$$/d" setup/files.txt)
1919

2020
#CODE_FILES := $(shell find . -type f -name '*.sh' -o -type f -name '.bash*' | sort)
2121
#CODE_FILES := $(shell git ls-files | grep -E -e '\.sh$$' -e '\.bash[^/]*$$' -e '\.groovy$$' | sort)
22-
CODE_FILES = $(shell if type git >/dev/null 2>&1; then git ls-files | grep -E -e '\.sh$$' -e '\.bash[^/]*$$' -e '\.groovy$$' | sort | while read -r filepath; do test -f "$$filepath" || continue; test -d "$$filepath" && continue; test -L "$$filepath" && continue; echo "$$filepath"; done; else find . -type f; fi)
22+
CODE_FILES = $(shell \
23+
if type git >/dev/null 2>&1; then \
24+
git ls-files | \
25+
grep -E -e '\.sh$$' -e '\.bash[^/]*$$' -e '\.groovy$$' | \
26+
sort | \
27+
while read -r filepath; do \
28+
test -f "$$filepath" || continue; \
29+
test -d "$$filepath" && continue; \
30+
test -L "$$filepath" && continue; \
31+
echo "$$filepath"; \
32+
done; \
33+
else \
34+
find . -type f; \
35+
fi \
36+
)
2337

2438

2539
BASH_PROFILE_FILES := $(shell echo .bashrc .bash_profile .bash.d/*.sh)

0 commit comments

Comments
 (0)