-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
34 lines (27 loc) · 1.36 KB
/
Makefile
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
31
32
33
34
default:
@echo "options:"
@echo "make install: prepare Foafpress install (make cachedir writeable, get all libraries)"
@echo "make getlibs: clone all libraries (arc2, rdfto, spcms)"
@echo "make caching: make cachedir writeable"
@echo "make arc2|rdfto|spcms: clone a specific libraries"
@echo "make enable-modules: enable apache modules (sudo needed)"
install: caching getlibs
caching:
chmod 777 cache
getlibs: arc2 rdfto spcms
enable-modules:
a2enmod negotiation
a2enmod dir
a2enmod rewrite
arc2:
rm -rf foafpressapp/libraries/arc2
git status 2>/dev/null >/dev/null || hg clone http://bitbucket.org/haschek/arc2 foafpressapp/libraries/arc2
hg status 2>/dev/null >/dev/null || git clone https://github.com/haschek/arc2.git foafpressapp/libraries/arc2
rdfto:
rm -rf foafpressapp/libraries/rdfto
git status 2>/dev/null >/dev/null || hg clone http://bitbucket.org/haschek/rdf-template-object foafpressapp/libraries/rdfto
hg status 2>/dev/null >/dev/null || git clone https://github.com/haschek/RDF-Template-Object.git foafpressapp/libraries/rdfto
spcms:
rm -rf foafpressapp/libraries/spcms
git status 2>/dev/null >/dev/null || hg clone https://sandbox-publisher-cms.googlecode.com/hg/ foafpressapp/libraries/spcms
hg status 2>/dev/null >/dev/null || git clone https://github.com/haschek/Sandbox-Publisher-CMS.git foafpressapp/libraries/spcms