From e6cae5020f90caa6b0ae8e68b4932d113ed47cd1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 27 Aug 2023 16:28:08 +0200 Subject: Makefile: Add install target --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9ec4b68..9fdca7a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ +DESTDIR := artifacts +.PHONY: all debug clean install -.PHONY: all debug clean +all: public -all: +public: mkdir -p public hugo -D @@ -9,7 +11,11 @@ debug: hugo server -D clean: + rm -rf artifacts rm -rf public rm -rf resources rm -f .hugo_build.lock +install: + rm -rf $(DESTDIR) + cp -r public $(DESTDIR) -- cgit v1.2.3-70-g09d2