kopia lustrzana https://github.com/micropython/micropython-lib
Makefile: Support installing individual modules with "install MOD=<name>".
rodzic
3ddec7f491
commit
939f2267e9
12
Makefile
12
Makefile
|
@ -4,7 +4,11 @@ all:
|
||||||
|
|
||||||
# Installs all modules to a lib location, for development testing
|
# Installs all modules to a lib location, for development testing
|
||||||
install:
|
install:
|
||||||
mkdir -p $(PREFIX)
|
@mkdir -p $(PREFIX)
|
||||||
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
|
@if [ -n "$(MOD)" ]; then \
|
||||||
(cd $$d; cp -r $$(find . -name "*.py") $(PREFIX)); \
|
(cd $(MOD); cp -r * $(PREFIX)); \
|
||||||
done \
|
else \
|
||||||
|
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
|
||||||
|
(cd $$d; cp -r * $(PREFIX)); \
|
||||||
|
done \
|
||||||
|
fi
|
||||||
|
|
Ładowanie…
Reference in New Issue