Brought back from an old commit

pull/428/head
Dan Stromberg 2021-06-09 14:49:28 -07:00
rodzic 2e91b92413
commit 4533f011d6
1 zmienionych plików z 16 dodań i 0 usunięć

16
Makefile 100644
Wyświetl plik

@ -0,0 +1,16 @@
PREFIX = ~/.micropython/lib
all:
# Installs all modules to a lib location, for development testing
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)"
install:
@mkdir -p $(PREFIX)
@if [ -n "$(MOD)" ]; then \
(cd $(MOD); sh -c $(CMD)); \
else \
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
echo $$d; \
(cd $$d; sh -c $(CMD)); \
done \
fi