-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
46 lines (36 loc) · 940 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: all
all: test
.PHONY: init
init:
dotnet tool install --global dotnet-format
.PHONY: format
format:
dotnet restore ./Aspose.BarCode.Cloud.Sdk.sln
dotnet format ./Aspose.BarCode.Cloud.Sdk.sln --no-restore
# Trim white space in comments
find . -iname "*.cs" -exec sed -i -e 's_[[:space:]]*$$__' {} \;
.PHONY: format-doc
format-doc:
find . -iname "*.md" -exec sed -i -e 's_[[:space:]]*$$__' {} \;
.PHONY: test
test:
dotnet test
.PHONY: insert-examples
insert-examples:
./scripts/insert-examples.bash
.PHONY: after-gen
after-gen: insert-examples format format-doc
./scripts/annotate-obsolete.bash
.PHONY: update
update:
echo "Not implemented"
.PHONY: lint
lint:
dotnet build --warnaserror Aspose.BarCode.Cloud.Sdk.sln
.PHONY: clean
clean:
find . -depth -type d \( -name obj -o -name bin -o -name TestResults \) -exec rm -rf "{}" \; || true
.PHONY: nuget
nuget:
./scripts/pack-nuget.bash
./scripts/test-nuget.bash