Files
isn/Makefile

50 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2023-04-16 23:47:55 +01:00
CONFIGURATION=Debug
2025-02-01 19:44:31 +00:00
TARGETFV=net8.0
2023-04-16 23:47:55 +01:00
all: build-isn build-isnd
build-%: src/%
dotnet build -p:Configuration=$(CONFIGURATION) $^
pack-%: src/%
dotnet pack $^
watch:
dotnet watch --project=src/isnd
test-push:
2023-04-18 08:43:22 +01:00
isn push src/isn/bin/Debug/isn.*.nupkg
2023-04-16 23:47:55 +01:00
2025-07-07 14:16:48 +01:00
clean-src-%: src/%
rm -rf $^/bin $^/obj
clean-test-%: test/%
2023-04-16 23:47:55 +01:00
rm -rf $^/bin $^/obj
2023-04-17 01:32:47 +01:00
packs: pack-isn pack-isnd pack-isn.abst
2025-07-07 14:16:48 +01:00
clean: clean-src-isnd clean-src-isn clean-src-isn.abst clean-test-isnd.tests clean-test-isn.tests
2023-04-16 23:47:55 +01:00
2025-07-07 14:16:48 +01:00
TARGETFRAMEWORK=net9.0
2024-03-31 15:59:43 +01:00
2023-04-18 08:43:22 +01:00
server-update:
2024-03-24 16:53:12 +00:00
dotnet build -c Release src/isnd
2024-03-31 15:59:43 +01:00
dotnet publish -c Release -f $(TARGETFRAMEWORK) src/isnd
2023-04-18 08:43:22 +01:00
sudo systemctl stop isnd
2024-03-31 15:59:43 +01:00
sudo cp -a src/isnd/bin/Release/$(TARGETFRAMEWORK)/publish/* /srv/www/isnd
2023-04-18 08:43:22 +01:00
sudo systemctl start isnd
2023-04-17 01:32:47 +01:00
2024-03-24 16:53:12 +00:00
client-update:
dotnet build -c Release src/isn
# MAJ du client
2024-03-31 15:59:43 +01:00
sudo cp -a src/isn/bin/Release/$(TARGETFRAMEWORK)/* /usr/local/lib/isn
2024-03-24 16:53:12 +00:00
sudo chown -R root:root /usr/local/lib/isn
src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg:
dotnet pack src/isn.abst -c Release
push-test: src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg
isn push -s "http://localhost:3002/v3/index.json" src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg