From 241c44a38002e03a47fd83f795c21f2f647d4be2 Mon Sep 17 00:00:00 2001 From: Florestan Bredow Date: Thu, 12 Jun 2025 18:39:16 +0200 Subject: [PATCH] Ajoute l'action install --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 5b4705c..7c5939e 100644 --- a/Makefile +++ b/Makefile @@ -15,3 +15,10 @@ install-dep: clean: @rm -r ./dist ./build + +install: +ifeq ($(USER), root) + @cp ./dist/main /usr/local/bin/blog +else + @cp ./dist/main ~/.local/bin/blog +endif