yavsc/Makefile

44 lines
1.1 KiB
Makefile
Raw Normal View History

2021-04-05 02:11:19 +01:00
2019-12-11 16:42:07 +00:00
CONFIG=Debug
2026-02-07 23:44:51 +00:00
FRAMEWORK=net9.0
DESTDIR=/tmp/yavsc
2026-02-14 16:54:27 +00:00
APP_PATH=srv/www/yavsc
APP_FULL_PATH=$(DESTDIR)/$(APP_PATH)
2020-10-18 23:00:17 +01:00
2025-08-19 21:31:49 +01:00
all:
2025-11-16 15:53:13 +00:00
dotnet build --nologo
2025-08-19 21:31:49 +01:00
2020-06-07 16:40:17 +01:00
clean:
2025-02-24 21:13:25 +00:00
dotnet clean
2019-01-30 17:52:19 +00:00
2021-04-05 01:13:24 +01:00
src/Yavsc/bin/output/wwwroot:
2025-02-24 21:13:25 +00:00
dotnet --project src/Yavsc/Yavsc.csproj publish
2020-11-01 20:28:00 +00:00
2019-01-30 17:52:19 +00:00
test:
2025-02-24 21:13:25 +00:00
dotnet test
2019-01-30 17:52:19 +00:00
2025-09-14 02:42:08 +01:00
watch:
2025-02-24 21:13:25 +00:00
dotnet watch -p:Configuration=$(CONFIG) --project src/Yavsc/Yavsc.csproj
2021-06-28 22:34:18 +01:00
2025-02-24 21:13:25 +00:00
src/Yavsc.Abstract/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.Abstract.dll:
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc.Abstract/Yavsc.Abstract.csproj
2021-03-16 00:59:24 +00:00
2025-02-24 21:13:25 +00:00
src/Yavsc.Server/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.Server.dll:
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc.Server/Yavsc.Server.csproj
2021-03-10 01:41:31 +00:00
2025-02-24 21:13:25 +00:00
src/Yavsc/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.dll:
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc/Yavsc.csproj
2020-10-10 18:29:06 +01:00
2026-02-14 16:54:27 +00:00
$(DESTDIR):
mkdir $(DESTDIR)
2026-02-14 16:54:27 +00:00
install: $(DESTDIR)
dotnet publish src/Org/Org.csproj -c Release -o $(APP_FULL_PATH)
dotnet publish src/Api/Api.csproj -c Release -o $(APP_FULL_PATH)
dotnet publish src/Web/Web.csproj -c Release -o $(APP_FULL_PATH)
sudo chown -R www-data:www-data $(APP_FULL_PATH)
2026-02-07 23:44:51 +00:00
docker-image:
docker build .
2025-02-24 21:13:25 +00:00
.PHONY: