summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)