-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (56 loc) · 2.31 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
all: rebuild pack
pack:
mkdir -p `pwd`/packages
dotnet pack -c Release `pwd`/src/Larva.Core/
mv `pwd`/src/Larva.Core/bin/Release/*.nupkg `pwd`/packages/
dotnet pack -c Release `pwd`/src/Larva.Autofac/
mv `pwd`/src/Larva.Autofac/bin/Release/*.nupkg `pwd`/packages/
dotnet pack -c Release `pwd`/src/Larva.Log4Net/
mv `pwd`/src/Larva.Log4Net/bin/Release/*.nupkg `pwd`/packages/
dotnet pack -c Release `pwd`/src/Larva.NewtonsoftJson/
mv `pwd`/src/Larva.NewtonsoftJson/bin/Release/*.nupkg `pwd`/packages/
test: test-core test-autofac test-log4net test-json
test-core:
dotnet test -c Release `pwd`/src/Larva.Core.Tests/
test-autofac:
dotnet test -c Release `pwd`/src/Larva.Autofac.Tests/
test-log4net:
dotnet test -c Release `pwd`/src/Larva.Log4Net.Tests/
test-json:
dotnet test -c Release `pwd`/src/Larva.NewtonsoftJson.Tests/
rebuild: clear restore build
build:
dotnet build -c Release `pwd`/src/Larva.Core/
dotnet build -c Release `pwd`/src/Larva.Core.Tests/
dotnet build -c Release `pwd`/src/Larva.Autofac/
dotnet build -c Release `pwd`/src/Larva.Autofac.Tests/
dotnet build -c Release `pwd`/src/Larva.Log4Net/
dotnet build -c Release `pwd`/src/Larva.Log4Net.Tests/
dotnet build -c Release `pwd`/src/Larva.NewtonsoftJson/
dotnet build -c Release `pwd`/src/Larva.NewtonsoftJson.Tests/
restore:
dotnet restore `pwd`/src/Larva.Core/
dotnet restore `pwd`/src/Larva.Core.Tests/
dotnet restore `pwd`/src/Larva.Autofac/
dotnet restore `pwd`/src/Larva.Autofac.Tests/
dotnet restore `pwd`/src/Larva.Log4Net/
dotnet restore `pwd`/src/Larva.Log4Net.Tests/
dotnet restore `pwd`/src/Larva.NewtonsoftJson/
dotnet restore `pwd`/src/Larva.NewtonsoftJson.Tests/
clear:
rm -rf `pwd`/src/Larva.Core/bin/*
rm -rf `pwd`/src/Larva.Core/obj/*
rm -rf `pwd`/src/Larva.Core.Tests/bin/*
rm -rf `pwd`/src/Larva.Core.Tests/obj/*
rm -rf `pwd`/src/Larva.Autofac/bin/*
rm -rf `pwd`/src/Larva.Autofac/obj/*
rm -rf `pwd`/src/Larva.Autofac.Tests/bin/*
rm -rf `pwd`/src/Larva.Autofac.Tests/obj/*
rm -rf `pwd`/src/Larva.Log4Net/bin/*
rm -rf `pwd`/src/Larva.Log4Net/obj/*
rm -rf `pwd`/src/Larva.Log4Net.Tests/bin/*
rm -rf `pwd`/src/Larva.Log4Net.Tests/obj/*
rm -rf `pwd`/src/Larva.NewtonsoftJson/bin/*
rm -rf `pwd`/src/Larva.NewtonsoftJson/obj/*
rm -rf `pwd`/src/Larva.NewtonsoftJson.Tests/bin/*
rm -rf `pwd`/src/Larva.NewtonsoftJson.Tests/obj/*