-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (46 loc) · 1.38 KB
/
Copy pathMakefile
File metadata and controls
55 lines (46 loc) · 1.38 KB
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
# Makefile for building all NuGet packages (excluding .Test projects)
NUGET_OUT ?= ./nupkgs
VERSION ?=
ifeq ($(strip $(VERSION)),)
$(error VERSION is not set. Usage: make VERSION=1.2.3)
endif
all: restclient-nuget json-nuget newtonsoft-nuget xml-nuget
restclient-nuget:
@echo "Packing Activout.RestClient..."
dotnet pack \
-p:PackageVersion="$(VERSION)" \
--configuration=Release \
--include-symbols \
--include-source \
-o $(NUGET_OUT) \
Activout.RestClient/Activout.RestClient.csproj
json-nuget:
@echo "Packing Activout.RestClient.Json..."
dotnet pack \
-p:PackageVersion="$(VERSION)" \
--configuration=Release \
--include-symbols \
--include-source \
-o $(NUGET_OUT) \
Activout.RestClient.Json/Activout.RestClient.Json.csproj
newtonsoft-nuget:
@echo "Packing Activout.RestClient.Newtonsoft.Json..."
dotnet pack \
-p:PackageVersion="$(VERSION)" \
--configuration=Release \
--include-symbols \
--include-source \
-o $(NUGET_OUT) \
Activout.RestClient.Newtonsoft.Json/Activout.RestClient.Newtonsoft.Json.csproj
xml-nuget:
@echo "Packing Activout.RestClient.Xml..."
dotnet pack \
-p:PackageVersion="$(VERSION)" \
--configuration=Release \
--include-symbols \
--include-source \
-o $(NUGET_OUT) \
Activout.RestClient.Xml/Activout.RestClient.Xml.csproj
clean:
rm -rf $(NUGET_OUT)
.PHONY: all clean restclient-nuget json-nuget newtonsoft-nuget xml-nuget