summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-08-27 16:28:08 +0200
committerxengineering <me@xengineering.eu>2023-08-27 16:30:16 +0200
commite6cae5020f90caa6b0ae8e68b4932d113ed47cd1 (patch)
tree2734eef969a275be1a4d2772e30b62eff734c48a
parent666ec58a11c83d484744e91ea246c23ba0f2ad85 (diff)
downloadwebsite-e6cae5020f90caa6b0ae8e68b4932d113ed47cd1.tar
website-e6cae5020f90caa6b0ae8e68b4932d113ed47cd1.tar.zst
website-e6cae5020f90caa6b0ae8e68b4932d113ed47cd1.zip
Makefile: Add install target
-rw-r--r--Makefile10
1 files 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)