forked from CryptoGuardOSS/cryptoguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (61 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#region Variables
#Variables dynamically set when the program is being built from the source
ver=03.14.00
name=cryptoguard
py=cryptosouple.py
#General Variables used throughout the Makefile
dir=./
runner=$(dir)$(py)
#endregion
default:: build
#region Commands
#Builds the project without running the setup
autobuild:
@$(info Building the project.)
@$(runner) build
#Will build the project if there wasn't a full build
build: env
@$(info Building the project.)
@$(runner) build
#Sets the current environment variable if it's not set
env:
@$(info Checking the home variables.)
@$(runner) checkEnv
#This runs the help method
help:
@$(runner) help
#This runs command builder
buildCmd:
@$(info Running the build command program.)
@$(runner) buildCmd
#This creates the Usage file
usage:
@$(info Running the usage program.)
@$(runner) writeUsage
#This runs all of the crawled tests
tests:
@$(info Running the Gradle Tests.)
@$(runner) tests
#This runs all of the crawled tests
clean:
@$(info Cleaning the project.)
@$(runner) clean
website:
@$(info Building the Jekyll website)
@cd docs && bundle exec jekyll serve -w
docker:
@$(info Build the Docker file)
@docker build -t cryptoguard .
live:
@$(info Running the Docker file)
#This exposes port 9000 from the host machine to port 8888 within the docker machine
@docker run -p 9000:8888 -ti cryptoguard /bin/bash
kill:
@$(info Killing all the Dockerfiles)
@-docker kill $$(docker ps -q)
@-docker rm $$(docker ps -a -q)
@-docker rmi $$(docker images -q)
run:
@$(info Running the juypter notebook)
@jupyter notebook --ip=127.0.0.1 --port=9000
#endregion