From 3a7f2bd8609af70122342813cc406de690eacad6 Mon Sep 17 00:00:00 2001 From: James Vasile Date: Thu, 7 Feb 2013 09:22:00 -0500 Subject: no need to write a cherryp.config --- Makefile | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3