summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJames Vasile <james@jamesvasile.com>2013-02-07 09:22:00 -0500
committerJames Vasile <james@jamesvasile.com>2013-02-07 09:22:00 -0500
commit3a7f2bd8609af70122342813cc406de690eacad6 (patch)
treec3e92b3aa9b224d093d9cf2f9b0dd7260710ce9e /Makefile
parent63d2c3ee6827d15e79e3509fc26cff6ffc7d83ef (diff)
no need to write a cherryp.config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 6 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index b9629bb..92a66ec 100644
--- a/Makefile
+++ b/Makefile
@@ -31,16 +31,18 @@ $(BUILDDIR)/withsqlite: build
install: default
mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/plinth
cp plinth.sample.fhs.config $(DESTDIR)/etc/plinth/plinth.config
- mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth $(DESTDIR)/usr/share/plinth/ $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
- cp -L doc/* $(DESTDIR)/usr/share/doc/plinth/
+ mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth $(DESTDIR)/usr/bin \
+ $(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
+ rsync -L doc/* $(DESTDIR)/usr/share/doc/plinth/
gzip $(DESTDIR)/usr/share/doc/plinth/plinth.1
mv $(DESTDIR)/usr/share/doc/plinth/plinth.1.gz $(DESTDIR)/usr/share/man/man1
- rsync -rl *.py modules templates vendor static --exclude static/doc --exclude .git/* $(DESTDIR)/usr/lib/python2.7/plinth
+ rsync -rl *.py modules templates vendor themes static \
+ --exclude static/doc --exclude .git/* --exclude *.pyc \
+ $(DESTDIR)/usr/lib/python2.7/plinth
mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
cp doc/*.html $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
rm -f $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
ln -s ../../../../etc/plinth/plinth.config $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
- cp -r themes $(DESTDIR)/usr/share/plinth
cp share/init.d/plinth $(DESTDIR)/etc/init.d
rm -f $(DESTDIR)/usr/bin/plinth
ln -s ../lib/python2.7/plinth/plinth.py $(DESTDIR)/usr/bin/plinth
@@ -63,27 +65,6 @@ dirs:
config: Makefile
@test -f plinth.config || cp plinth.sample.config plinth.config
-cherrypy.config: Makefile
- @echo [global]\\n\
-server.socket_host = \'0.0.0.0\'\\n\
-server.socket_port = 8000\\n\
-server.thread_pool = 10\\n\
-tools.staticdir.root = \"$(PWD)\"\\n\
-tools.sessions.on = True\\n\
-tools.auth.on = True\\n\
-tools.sessions.storage_type = \"file\"\\n\
-tools.sessions.timeout = 90\\n\
-tools.sessions.storage_path = \"$(PWD)/data/cherrypy_sessions\"\\n\
-\\n\
-[/static]\\n\
-tools.staticdir.on = True\\n\
-tools.staticdir.dir = \"static\"\\n\
-\\n\
-[/favicon.ico]\\n\
-tools.staticfile.on = True\\n\
-tools.staticfile.filename = \"$(PWD)/static/theme/favicon.ico\"\\n\
-> cherrypy.config
-
%.tiny.css: %.css
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
css: $(COMPRESSED_CSS)