Skip to content

Commit fb33009

Browse files
committed
make install: Bunch more shell magic for cleaner installs.
1 parent 56454eb commit fb33009

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ PREFIX = ~/.micropython/lib
33
all:
44

55
# Installs all modules to a lib location, for development testing
6+
CMD="find . -maxdepth 1 -mindepth 1 \( -name '*.py' -not -name 'test_*' -not -name 'setup.py' \) -or \( -type d -not -name 'dist' -not -name '*.egg-info' -not -name '__pycache__' \)| xargs cp -r -t $(PREFIX)"
67
install:
78
@mkdir -p $(PREFIX)
89
@if [ -n "$(MOD)" ]; then \
9-
(cd $(MOD); cp -r * $(PREFIX)); \
10+
(cd $(MOD); sh -c $(CMD)); \
1011
else \
1112
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
12-
(cd $$d; cp -r * $(PREFIX)); \
13+
(cd $$d; sh -c $(CMD)); \
1314
done \
1415
fi

0 commit comments

Comments
 (0)