-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 837 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 837 Bytes
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
CONFIGURATION = Release
BIN = bin/$(CONFIGURATION)
MDOC = $(BIN)/mdoc.exe
NUGET = $(if $(filter Windows_NT,$(OS)),nuget,$(if $(NUGET_EXE),$(NUGET_EXE),nuget))
ENVIRONMENT = notwsl#use 'wsl' when running on wsl
all: build
build: $(MDOC)
$(MDOC):
dotnet build -v:n apidoctools.sln /p:Configuration=$(CONFIGURATION)
prepare:
git submodule update --init --recursive
dotnet restore apidoctools.sln
$(NUGET) install NUnit.Console -version 3.6.0 -NoCache -o packages
clean:
dotnet build -v:n apidoctools.sln /t:clean /p:Configuration=$(CONFIGURATION)
rm -rf bin/$(CONFIGURATION)
check: build check-monodoc check-mdoc
check-mdoc:
$(MAKE) check -B -C mdoc
nuget:
$(NUGET) pack mdoc/mdoc.nuspec -outputdirectory bin/Nuget
check-monodoc:
$(MAKE) check -B -C monodoc
zip:
rm -f $(BIN)/mdoc*.zip
zip -j $(BIN)/mdoc.zip $(BIN)/*