isn/Makefile

50 lines
1.1 KiB
Makefile

3 years ago
CONFIGURATION=Debug
TARGETFV=net8.0
3 years ago
all: build-isn build-isnd
build-%: src/%
dotnet build -p:Configuration=$(CONFIGURATION) $^
pack-%: src/%
dotnet pack $^
watch:
dotnet watch --project=src/isnd
test-push:
3 years ago
isn push src/isn/bin/Debug/isn.*.nupkg
3 years ago
5 months ago
clean-src-%: src/%
rm -rf $^/bin $^/obj
clean-test-%: test/%
3 years ago
rm -rf $^/bin $^/obj
3 years ago
packs: pack-isn pack-isnd pack-isn.abst
5 months ago
clean: clean-src-isnd clean-src-isn clean-src-isn.abst clean-test-isnd.tests clean-test-isn.tests
3 years ago
5 months ago
TARGETFRAMEWORK=net9.0
3 years ago
server-update:
2 years ago
dotnet build -c Release src/isnd
dotnet publish -c Release -f $(TARGETFRAMEWORK) src/isnd
3 years ago
sudo systemctl stop isnd
sudo cp -a src/isnd/bin/Release/$(TARGETFRAMEWORK)/publish/* /srv/www/isnd
3 years ago
sudo systemctl start isnd
3 years ago
2 years ago
client-update:
dotnet build -c Release src/isn
# MAJ du client
sudo cp -a src/isn/bin/Release/$(TARGETFRAMEWORK)/* /usr/local/lib/isn
2 years ago
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