ddd-dotnet-core/Makefile

42 lines
959 B
Makefile
Raw Normal View History

2020-04-11 23:36:20 +00:00
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)