-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
34 lines (25 loc) · 1.18 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
help:
@fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/##//' | tail -n +2
build: ## Build libraries
./bin/build.sh
debug: build ## Build debug
dotnet build RhythmGameUtilities/*.csproj --configuration Debug
release: build ## Build release
dotnet build RhythmGameUtilities/*.csproj --configuration Release
test: build ## Run tests
./bin/test.sh
dotnet test RhythmGameUtilities.Tests/*.csproj
copy: ## Copy files from project to UnityPackage
(cd RhythmGameUtilities && find . -type f -name "*.cs" -not -path '*/obj/*' -not -path '*/bin/*' -exec cp {} ../UnityPackage/{} \;)
(cd RhythmGameUtilities.Tests && find . -type f -name "*.cs" -not -path '*/obj/*' -not -path '*/bin/*' -exec cp {} ../UnityPackage/Editor/Tests/{} \;)
cp LICENSE ./UnityPackage/
cp README.md ./RhythmGameUtilities/
cp README.md ./UnityPackage/
cp screenshot.png ./UnityPackage/
rcopy: ## Copy files from UnityPackage back to project
(cd UnityPackage && find . -type f -name "*.cs" -not -path '*/Editor/*' -not -path '*/Samples~/*' -exec cp {} ../RhythmGameUtilities/{} \;)
clean: ## Clean project
git clean -xdf
tidy:
clang-tidy include/**/*.hpp -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus*
.PHONY: build