-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
27 lines (22 loc) · 1.2 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
# Copyright (c) 2024 Giuseppe Rocco, Federica Mosca, Vittorio Monfrecola
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
build:
javac -d bin/main $$(find ./src/main | grep .java) \
-cp bin/main:deps/json-simple-1.1.1.jar && \
javac -d bin/test $$(find ./src/test | grep .java) \
-cp bin/main:deps/junit-platform-console-standalone-1.11.0-M2.jar
run:
java -cp deps/json-simple-1.1.1.jar:deps/mariadb-java-client-3.4.0.jar:bin/main com.romomo.Main
test:
java -jar deps/junit-platform-console-standalone-1.11.0-M2.jar execute \
-c com.romomo.control.GestionePiattaforma_RegistrazioneTest \
-c com.romomo.control.GestionePiattaforma_AggiuntaProdottoTest \
-c com.romomo.control.GestionePiattaforma_RichiestaReportTest \
-cp deps/mariadb-java-client-3.4.0.jar:bin/main:bin/test
clean:
rm -fr ./bin