-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (16 loc) · 799 Bytes
/
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
#!/usr/bin/make -f
COMMONDEPS := Makefile
ENVIRONMENTFILE := ~/Development/infrastructure/build/corona.env
############ general
all: binaries-build tests
clean:
git clean -xdff
run-locally: Corona/CoronaSpreadViewer/bin/Release/netcoreapp6.0/publish/CoronaSpreadViewer.dll
cd Corona/CoronaSpreadViewer/bin/Release/netcoreapp6.0/publish && env $(shell cat $(ENVIRONMENTFILE) | xargs) dotnet CoronaSpreadViewer.dll
tests: binaries-build
cd Corona && dotnet test
Corona/CoronaSpreadViewer/bin/Release/netcoreapp6.0/publish/CoronaSpreadViewer.dll: $(COMMONDEPS) $(shell find Corona -type f -not -path "*/bin/*" -not -path "*/obj/*" -name "*")
cd Corona && dotnet publish --configuration Release
binaries-build:
cd Corona && dotnet build
.PHONY: all clean run-locally tests binaries-build