-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.22 KB
/
Makefile
File metadata and controls
45 lines (36 loc) · 1.22 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
.PHONY: all build test format clean restore pack help
# Default target: build and test the solution
all: build test
# Show available targets
help:
@echo "Available targets:"
@echo " make all - Build and test the solution (default)"
@echo " make restore - Restore NuGet packages"
@echo " make build - Build the solution"
@echo " make format - Run dotnet format"
@echo " make test - Run tests"
@echo " make pack - Build NuGet package (Release)"
@echo " make install - Install ripsharp as a global dotnet tool (local package)"
@echo " make clean - Clean build outputs"
# Restore NuGet packages
restore:
dotnet restore RipSharp.sln
# Build the solution
build: restore
dotnet build RipSharp.sln
# Run code formatter
format:
dotnet format RipSharp.sln
# Run tests
test: build
dotnet test RipSharp.sln
# Build NuGet package (Release)
pack: build
dotnet pack -c Release src/RipSharp
# Install ripsharp as a global dotnet tool from local package output
install: pack
@dotnet tool uninstall --global BugZapperLabs.RipSharp >/dev/null 2>&1 || true
@dotnet tool install --global BugZapperLabs.RipSharp --add-source src/RipSharp/bin/Release
# Clean build outputs
clean:
dotnet clean RipSharp.sln