yavsc/Makefile

52 lines
1.2 KiB
Makefile
Raw Permalink 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
2026-06-15 00:33:38 +01:00
include .env
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
2026-07-05 23:56:10 +01:00
clean:
dotnet clean -c $(CONFIG)
2019-01-30 17:52:19 +00:00
2021-04-05 01:13:24 +01:00
src/Yavsc/bin/output/wwwroot:
2026-05-24 00:59:38 +01:00
dotnet --project src/Yavsc.Org/Yavsc.Org.csproj publish
2020-11-01 20:28:00 +00:00
2019-01-30 17:52:19 +00:00
test:
2026-06-19 01:36:08 +01:00
ASPNETCORE_ENVIRONMENT=Development 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:
2026-05-24 00:59:38 +01:00
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc.Org/Yavsc.Org.csproj
2020-10-10 18:29:06 +01:00
2026-07-05 23:56:10 +01:00
$(DESTDIR):
2026-02-14 16:54:27 +00:00
mkdir $(DESTDIR)
2026-02-14 16:54:27 +00:00
install: $(DESTDIR)
2026-05-24 00:59:38 +01:00
dotnet publish src/Yavsc.Org/Yavsc.Org.csproj -c Release -o $(APP_FULL_PATH)
2026-02-14 16:54:27 +00:00
dotnet publish src/Api/Api.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 .
2026-05-30 15:41:59 +01:00
docker-build:
docker compose up --build
docker-run:
docker run -d -p 5000:5000 --name yavsc yavsc
2026-06-15 00:33:38 +01:00
.PHONY: test