Skip to content

Commit 939f226

Browse files
committed
Makefile: Support installing individual modules with "install MOD=<name>".
1 parent 3ddec7f commit 939f226

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ all:
44

55
# Installs all modules to a lib location, for development testing
66
install:
7-
mkdir -p $(PREFIX)
8-
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
9-
(cd $$d; cp -r $$(find . -name "*.py") $(PREFIX)); \
10-
done \
7+
@mkdir -p $(PREFIX)
8+
@if [ -n "$(MOD)" ]; then \
9+
(cd $(MOD); cp -r * $(PREFIX)); \
10+
else \
11+
for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \
12+
(cd $$d; cp -r * $(PREFIX)); \
13+
done \
14+
fi

0 commit comments

Comments
 (0)