From 8894e7fd6f8f1e0ca88a1d9a0928714b4cf60569 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Mon, 5 Aug 2024 14:55:32 -0300 Subject: [PATCH] add public html to makefile --- makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 12e28a9..387c4e7 100755 --- a/makefile +++ b/makefile @@ -13,8 +13,13 @@ SRC_DIR_FLAGS = --source=${SRC_PATH} BUILD_FLAGS = --trace --incremental SERVE_FLAGS = -H 0.0.0.0 -P 33002 -all: - sg www-data -c "${JEKYLL_CMD} build ${BUILD_FLAGS} ${SRC_DIR_FLAGS} ${DEST_DIR_FLAGS}" +all: build + +deploy: build + sg www-data -c "install -dm775 _site ${DEST_PATH}" + +build: + ${JEKYLL_CMD} build --trace # Executa o build toda vez que muda um arquivo # Rodando como serviço do systemd em /etc/systemd/system/alicecast-build-watch.service @@ -25,5 +30,9 @@ watch: serve: ${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS} +public_html: + ${JEKYLL_CMD} build {BUILD_FLAGS} --destination=~/public_html/aliceclass -w + clean: - rm -rf ${DEST_PATH}/* + rm -rf _site + # rm -rf ${DEST_PATH}/*