28 lines
785 B
Makefile
28 lines
785 B
Makefile
.PHONY: publish deploy html css
|
|
|
|
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/
|
|
|
|
html:
|
|
@echo "Publishing..."
|
|
cask emacs --quick --batch --load publish.el --funcall org-publish-all
|
|
|
|
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
|
|
|
|
public/assets/css/%.css: src/less/%.less
|
|
lessc $< $@
|
|
|
|
clean:
|
|
@echo "Cleaning up..."
|
|
@rm -rvf *.elc
|
|
@rm -rvf public
|
|
@rm -rvf .org-timestamps
|