build(makefile): separation

This commit is contained in:
kellervater
2025-04-12 13:49:34 +02:00
parent cbd41b65d3
commit 1289c63055
2 changed files with 28 additions and 16 deletions

View File

@@ -21,19 +21,3 @@ asdf-install: asdf-plugins ## Install tools with asdf
#
# Install tools via asdf.
@asdf install
# Jekyll
JEKYLL_CMD = bundle exec jekyll
.PHONY: serve
serve:
$(JEKYLL_CMD) serve
.PHONY: build
build:
$(JEKYLL_CMD) build -s src -d target
.PHONY: new_post
new-post:
$(JEKYLL_CMD) new post

28
page/Makefile Normal file
View File

@@ -0,0 +1,28 @@
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
# Jekyll
JEKYLL_CMD = bundle exec jekyll
.PHONY: serve
serve: ## Serve jekyll site with livereload
@echo "Serving site at http://localhost:4000"
$(JEKYLL_CMD) serve --livereloa
.PHONY: build
build: ## Build jekyll site
@echo "Building site at target"
$(JEKYLL_CMD) build
.PHONY: new_post
new-post: ## Create a new post
$(JEKYLL_CMD) new post
.PHONY: clean
clean: ## Clean jekyll site
@echo "Cleaning site"
$(JEKYLL_CMD) clean