-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.59 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Makefile based helper for experimental data mining and reporting on identifiers.org data
# Author: Manuel Bernal Llinares <[email protected]>
all:
@echo "<===|DEVOPS|===> [ALL] There is no default target for this helper"
install_requirements:
@echo "<===|DEVOPS|===> [INSTALL] Installing Application Requirements"
@python_install/bin/pip install pipreqs nose
@python_install/bin/pip install -r requirements.txt
python_install:
@echo "<===|DEVOPS|===> [INSTALL] Python Virtual Environment"
@pip install --user virtualenv
@virtualenv python_install
tmp:
@echo "<===|DEVOPS|===> [MKDIR] Temporary folder"
@mkdir tmp
dev_environment: python_install install_requirements
@echo "<===|DEVOPS|===> [INSTALL] Development Environment"
install: dev_environment
@echo "<===|DEVOPS|===> [INSTALL] Initializing Application Installation"
update_requirements_file: dev_environment
@echo "<===|DEVOPS|===> [UPDATE] Application Requirements"
#@python_install/bin/pipreqs --use-local --savepath requirements.txt $(PWD)
@python_install/bin/pip freeze > requirements.txt
clean_dev:
@echo "<===|DEVOPS|===> [CLEAN] Removing Python Virtual Environment"
@rm -rf python_install
clean_logs:
@echo "<===|DEVOPS|===> [CLEAN] Removing logs"
@rm -rf logs/*log
clean_tmp:
@echo "<===|DEVOPS|===> [CLEAN] Removing Temporary folder"
@rm -rf tmp
clean: clean_logs clean_tmp
@echo "<===|DEVOPS|===> [CLEAN] Housekeeping"
clean_all: clean clean_dev
@echo "<===|DEVOPS|===> [CLEAN] Housekeeping, clean all"
.PHONY: install dev_environment install_requirements update_requirements_file clean_logs clean_dev clean_all clean_tmp clean