Initial commit
This commit is contained in:
41
Makefile
Normal file
41
Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
DOTNET="/usr/bin/dotnet"
|
||||
SLN="./src/DDDDemo.sln"
|
||||
TARGET="linux-x64"
|
||||
|
||||
all: clean restore publish publish-release
|
||||
|
||||
clean:
|
||||
$(DOTNET) clean --verbosity=quiet $(SLN)
|
||||
rm -rf release-$(TARGET) debug-$(TARGET)
|
||||
|
||||
mrproper: clean
|
||||
find src/ \( -name "bin" -o -name "obj" \) -exec rm -rf {} +
|
||||
|
||||
restore:
|
||||
$(DOTNET) restore --verbosity=quiet --runtime $(TARGET) $(SLN)
|
||||
|
||||
build:
|
||||
$(DOTNET) build $(SLN)
|
||||
|
||||
publish:
|
||||
$(DOTNET) restore --verbosity=quiet --runtime $(TARGET) $(SLN)
|
||||
$(DOTNET) publish $(SLN) --no-restore \
|
||||
--verbosity=quiet \
|
||||
-c Debug \
|
||||
--output debug-$(TARGET)
|
||||
|
||||
publish-release:
|
||||
$(DOTNET) restore --verbosity=quiet --runtime $(TARGET) $(SLN)
|
||||
$(DOTNET) publish $(SLN) --no-restore \
|
||||
--verbosity=quiet \
|
||||
-c Release \
|
||||
--output release-$(TARGET)
|
||||
|
||||
run:
|
||||
$(DOTNET) run $(SLN)
|
||||
|
||||
list-tests: restore
|
||||
$(DOTNET) test --no-restore --verbosity=quiet --list-tests $(SLN)
|
||||
|
||||
tests: restore
|
||||
$(DOTNET) test --logger=trx --no-restore --verbosity=quiet $(SLN)
|
Reference in New Issue
Block a user