aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: da766e789bde94ad211726fd5cdd636e13aa1712 (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
30
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
	umask 022
	rsync -ruvp --chmod=Dugo+rx,Fugo+r publish/ fripost@fripost.org:fripost.org/

clean:
	rm -f *~*; rm -f 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