1+ QUORUM ?= 2
12PATH_PROJECT_JAR = target/simple_voting_structure-0.0.1-SNAPSHOT.jar
23PROJECT_GROUP = simple_voting_structure
3- JADE_AGENTS = simple_voting_structure:$(PROJECT_GROUP ) .App(2 );
4+ JADE_AGENTS = simple_voting_structure:$(PROJECT_GROUP ) .App($( QUORUM ) );
45JADE_FLAGS = -gui -agents "$(JADE_AGENTS ) "
56
67.PHONY :
78 clean
89 build-and-run
910
1011build-and-run :
11- @echo " Gerando a build e executando o projeto "
12+ @echo " Building and executing the project... "
1213 make build run
1314
1415build :
15- @echo " Gerando a build do projeto "
16+ @echo " Building the project "
1617 mvn clean install
1718
1819run :
19- @echo " Executando o projeto com a última build criada "
20+ @echo " Executing the project with the last build"
2021 java -cp $(PATH_PROJECT_JAR ) jade.Boot $(JADE_FLAGS )
2122
2223clean :
23- @echo " Removendo a build do projeto "
24+ @echo " Removing the existing build and auto-generated files "
2425 mvn clean
25- rm -f APDescription.txt; rm -f MTPs-Main-Container.txt
26+ rm -f APDescription.txt; rm -f MTPs-Main-Container.txt
27+
28+ help :
29+ @echo " This program has the following commands to execute:"
30+ @echo " $$ make build "
31+ @echo " It's responsible for Building the Jar of this Building Block"
32+ @echo " $$ make run"
33+ @echo " It's responsible for executing the program with graphic interface of JADE"
34+ @echo " $$ make clean"
35+ @echo " It's responsible for cleaning the generated files"
36+ @echo " $$ make build-and-run"
37+ @echo " Executes both commands build and run in this order"
38+ @echo " $$ make help"
39+ @echo " Shows this help resume"
40+ @echo " "
41+ @echo " If wanted it's possible to change the quantity of the voting agents by adding the variable QUORUM to the command, as seen in the next line"
42+ @echo " $$ make build-and-run QUORUM=<Quantity of voters>"
0 commit comments