47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
.PHONY: help
|
|
help: ## Show this help
|
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
install: ## Intall
|
|
@npm install
|
|
|
|
send_webmention: ## Send webmention from feed
|
|
@pushl -c $HOME/.config/pushl-cache https://fundor333.com/index.xml
|
|
|
|
develop: ## Run the site localy
|
|
hugo server --minify --disableFastRender
|
|
|
|
developfuture: ## Run the site localy with all the future article
|
|
hugo server --minify --disableFastRender --buildFuture
|
|
|
|
developall: ## Run the site localy with all the article, future or drafts
|
|
hugo server --minify --disableFastRender --buildFuture --buildDrafts
|
|
|
|
.PHONY: syntax
|
|
syntax: ## Build the style of the code
|
|
hugo gen chromastyles --style=dracula > themes/fugu/assets/css/_syntax.scss
|
|
|
|
cache: ## Clean the cache
|
|
hugo --gc
|
|
|
|
clean: cache syntax ## Clean the directory of the project of chache e meta file and other things
|
|
|
|
.PHONY: run
|
|
run: clean ## Build the site cleaning all
|
|
@hugo --minify
|
|
|
|
.PHONY: new
|
|
new: ## Make new object for the blog
|
|
@python3 make-post.py
|
|
|
|
characters: ## Sorting characters
|
|
@python3 sorting_characters.py
|
|
|
|
deploy: clean characters ## Ready to deploy
|
|
@npm update
|
|
@hugo --minify
|
|
|
|
brodcast: clean ## Brodcast the site
|
|
@hugo server --disableFastRender --buildFuture --buildDrafts -bind=0.0.0.0
|
|
|