Skip to content

Commit c01634f

Browse files
committed
Added node_modules check
1 parent 3135c31 commit c01634f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ help:
3838
@echo " exit - Exit development mode."
3939
@echo
4040

41+
node_modules:
42+
@npm install
43+
4144
check: package.json book.json LANGS.md
4245
@if ! which node 1> /dev/null; then\
4346
echo "Error: Node.js not found";\
@@ -46,13 +49,11 @@ check: package.json book.json LANGS.md
4649
false;\
4750
fi
4851

49-
setup: check
52+
setup: node_modules check
5053
@if ! test -f ".langs"; then\
5154
cp LANGS.md .langs && \
5255
echo "$(LANG_DATA)" > LANGS.md && \
5356
echo "You are set to $(LANG_NAME) for development";\
54-
npm install && \
55-
echo "Project is ready for development.";\
5657
fi
5758

5859
build: setup
@@ -69,7 +70,7 @@ dev: setup
6970

7071
mode:
7172
@if test -f ".langs"; then\
72-
echo "You are in development mode";\
73+
echo "You are in development mode using the language $(LANG_NAME)";\
7374
else\
7475
echo "You are not in development mode";\
7576
fi

0 commit comments

Comments
 (0)