aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 08f617e200979af8e906e1a7eef761c3eb916f71 (plain)
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
28
29
EMACS=emacs -q --no-site-file

all:	fripost-web

fripost-web: # creates home page
	$(EMACS) -batch -L . \
		-l "fripost-web.el" \
		-eval "(org-publish-project \"fripost-web\")"
	# UGLY HACK
	find publish -iname "*.html" -exec perl -pi -e 's!\\ndash!–!' {} \;
	# Remove Emacs backup files
	find publish -name "*~" -delete

send: # sends to fripost.org for publication
	rsync -ruvp publish/ fripost@fripost.org:fripost.org/

clean:
	rm *~*; rm test test.d/test; rmdir test.d

# Debuging and testing
send-test: test.d/test
	rsync -ruvp test.d/ fripost@fripost.org:fripost.org/

test.d/test: test.d
	echo This is the test file for fripost-web. > test.d/test
test.d:
	mkdir test.d