Browse Source

Make things probably work, hopefully

Sapein 2 months ago
parent
commit
be2db40cf5
1 changed files with 15 additions and 11 deletions
  1. 15
    11
      Makefile

+ 15
- 11
Makefile View File

@@ -5,20 +5,24 @@ VENV=python3 -m virtualenv
5 5
 venv_dir=venv
6 6
 
7 7
 test:
8
-	cd almaren_bot; python3 -m pytest $(TEST_ARGS) ../
8
+	. $(venv_dir)/bin/activate; \
9
+	cd almaren_bot; python3 -m pytest $(TEST_ARGS) ../; \
10
+	deactivate;
9 11
 
10 12
 create_dev:
11
-	$(VENV) -p python3 $(venv_dir)
12
-	source $(venv_dir)/bin/activate
13
-	$(PIP) install `cat *.txt`
13
+	$(VENV) -p python3 $(venv_dir); \
14
+	. $(venv_dir)/bin/activate; \
15
+	$(PIP) install `cat *.txt`; \
16
+	deactivate;
14 17
 
15 18
 create_prod:
16
-	$(VENV) -p python3 $(venv_dir)
17
-	source $(venv_dir)/bin/activate
18
-	$(PIP) install `cat requirements.txt`
19
+	$(VENV) -p python3 $(venv_dir); \
20
+	. $(venv_dir)/bin/activate; \
21
+	$(PIP) install `cat requirements.txt`; \
22
+	deactivate;
19 23
 
20 24
 cleanup_env:
21
-	source $(venv_dir)/bin/activate
22
-	$(PIP) uninstall `cat *.txt`
23
-	deactivate
24
-	rm -rf $(venv_dir)
25
+	. $(venv_dir)/bin/activate;\
26
+	$(PIP) uninstall `cat *.txt`;\
27
+	deactivate; \
28
+	rm -rf $(venv_dir);

Loading…
Cancel
Save