2014-04-05 09:37:49 +00:00
|
|
|
PREFIX = ~/.micropython/lib
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
# Installs all modules to a lib location, for development testing
|
2014-05-11 09:22:03 +00:00
|
|
|
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 --no-run-if-empty cp -r -t $(PREFIX)"
|
2014-04-05 09:37:49 +00:00
|
|
|
install:
|
2014-04-11 01:46:40 +00:00
|
|
|
@mkdir -p $(PREFIX)
|
|
|
|
@if [ -n "$(MOD)" ]; then \
|
2014-04-21 22:12:02 +00:00
|
|
|
(cd $(MOD); sh -c $(CMD)); \
|
2014-04-11 01:46:40 +00:00
|
|
|
else \
|
|
|
|
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
|
2014-05-11 09:22:03 +00:00
|
|
|
echo $$d; \
|
2014-04-21 22:12:02 +00:00
|
|
|
(cd $$d; sh -c $(CMD)); \
|
2014-04-11 01:46:40 +00:00
|
|
|
done \
|
|
|
|
fi
|