summaryrefslogtreecommitdiff
path: root/Makefile
blob: d9159099a5ff400eb37933acda52d756da7386b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Makefile for libreau.org

.PHONY: all publish publish_no_init

all: publish

announce:
	@echo "Announcing on mastodon."
	./announce.sh

deploy:
	@echo "Deploying to libreau.org."
	ansible-playbook -i  ~/.config/ansible/hosts -l libreau ~/.config/ansible/setup/sync-sites.yml

publish: publish.el
	@echo "Publishing... with current Emacs configurations."
	emacs --batch --load publish.el --funcall org-publish-all

publish_no_init: publish.el
	@echo "Publishing... with --no-init."
	emacs --batch --no-init --load publish.el --funcall org-publish-all

clean:
	@echo "Cleaning up.."
	@rm -rvf *.elc
	@rm -rvf site
	@rm -rvf ~/.org-timestamps/*