2021-07-04 02:10:20 -07:00
|
|
|
.PHONY: publish deploy html css
|
2019-10-06 12:57:14 -07:00
|
|
|
|
2021-07-04 02:10:20 -07:00
|
|
|
publish: html css
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
@[[ -e public/index.html ]] || (echo "Run make publish before deploy" && exit 1)
|
|
|
|
rsync --rsh="ssh -p 4511" --verbose --checksum --recursive --delete \
|
|
|
|
public/ ryuslash.org:ryuslash-next/
|
2019-10-06 18:49:10 -07:00
|
|
|
|
2020-03-19 00:11:07 -07:00
|
|
|
html:
|
|
|
|
@echo "Publishing..."
|
2022-03-20 01:13:28 -07:00
|
|
|
eldev emacs --quick --batch --load publish.el --funcall org-publish-all
|
2019-10-06 18:49:10 -07:00
|
|
|
|
2021-07-03 01:29:43 -07: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 12:57:14 -07:00
|
|
|
|
2020-03-19 00:11:07 -07:00
|
|
|
public/assets/css/%.css: src/less/%.less
|
2021-07-03 01:29:43 -07:00
|
|
|
lessc $< $@
|
2020-03-19 00:11:07 -07:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "Cleaning up..."
|
|
|
|
@rm -rvf *.elc
|
|
|
|
@rm -rvf public
|
2020-03-19 20:37:22 -07:00
|
|
|
@rm -rvf .org-timestamps
|