Merge branch 'master' of git://repo.or.cz/fripost-web
[fripost-web.git] / Makefile
blob08f617e200979af8e906e1a7eef761c3eb916f71
1 EMACS=emacs -q --no-site-file
3 all: fripost-web
5 fripost-web: # creates home page
6 $(EMACS) -batch -L . \
7 -l "fripost-web.el" \
8 -eval "(org-publish-project \"fripost-web\")"
9 # UGLY HACK
10 find publish -iname "*.html" -exec perl -pi -e 's!\\ndash!–!' {} \;
11 # Remove Emacs backup files
12 find publish -name "*~" -delete
14 send: # sends to fripost.org for publication
15 rsync -ruvp publish/ fripost@fripost.org:fripost.org/
17 clean:
18 rm *~*; rm test test.d/test; rmdir test.d
20 # Debuging and testing
21 send-test: test.d/test
22 rsync -ruvp test.d/ fripost@fripost.org:fripost.org/
24 test.d/test: test.d
25 echo This is the test file for fripost-web. > test.d/test
26 test.d:
27 mkdir test.d