2022-06-19 10:17:43 +02:00
|
|
|
.PHONY: publish deploy html css help
|
2019-10-06 21:57:14 +02:00
|
|
|
|
2022-06-19 10:17:43 +02:00
|
|
|
help: ## Show this help
|
|
|
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
2021-07-04 11:10:20 +02:00
|
|
|
|
2022-06-19 10:17:43 +02:00
|
|
|
publish: html css ## Build the site and copy it to the staging directory
|
|
|
|
|
|
|
|
deploy: ## Deploy the site to live
|
2021-07-04 11:10:20 +02:00
|
|
|
@[[ -e public/index.html ]] || (echo "Run make publish before deploy" && exit 1)
|
|
|
|
rsync --rsh="ssh -p 4511" --verbose --checksum --recursive --delete \
|
2022-03-21 05:25:49 +01:00
|
|
|
--exclude '*~' --exclude '.eldev' --delete-excluded \
|
2021-07-04 11:10:20 +02:00
|
|
|
public/ ryuslash.org:ryuslash-next/
|
2019-10-07 03:49:10 +02:00
|
|
|
|
2020-03-19 08:11:07 +01:00
|
|
|
html:
|
|
|
|
@echo "Publishing..."
|
2022-03-20 09:13:28 +01:00
|
|
|
eldev emacs --quick --batch --load publish.el --funcall org-publish-all
|
2019-10-07 03:49:10 +02:00
|
|
|
|
2021-07-03 10:29:43 +02:00
|
|
|
css: public/assets/css/main.css public/assets/css/tekuti.css public/assets/css/cgit.css
|
|
|
|
|
|
|
|
public/assets/css/main.css public/assets/css/tekuti.css public/assets/css/cgit.css: \
|
|
|
|
src/less/include/common.less \
|
|
|
|
src/less/include/components.less \
|
|
|
|
src/less/include/colors.less
|
2019-10-06 21:57:14 +02:00
|
|
|
|
2020-03-19 08:11:07 +01:00
|
|
|
public/assets/css/%.css: src/less/%.less
|
2021-07-03 10:29:43 +02:00
|
|
|
lessc $< $@
|
2020-03-19 08:11:07 +01:00
|
|
|
|
2022-06-19 10:17:43 +02:00
|
|
|
clean: ## Remove all of the build files
|
2020-03-19 08:11:07 +01:00
|
|
|
@echo "Cleaning up..."
|
|
|
|
@rm -rvf *.elc
|
|
|
|
@rm -rvf public
|
2020-03-20 04:37:22 +01:00
|
|
|
@rm -rvf .org-timestamps
|