From 63d2c3ee6827d15e79e3509fc26cff6ffc7d83ef Mon Sep 17 00:00:00 2001 From: James Vasile Date: Thu, 7 Feb 2013 06:19:44 -0500 Subject: Makefile improvements * Remove commented out git pull lines. We shouldn't update so automatically. * Use rsync because it gives us --exclude * Put docs where the webserver can find them --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d836bd2..b9629bb 100644 --- a/Makefile +++ b/Makefile @@ -21,15 +21,12 @@ predepend: $(BUILDDIR)/exmachina: build @test -d $@ || git clone git://github.com/tomgalloway/exmachina $@ - #@cd $@; git pull $(BUILDDIR)/bjsonrpc: build @test -d $@ || git clone git://github.com/deavid/bjsonrpc.git $@ - #@cd $@; git pull $(BUILDDIR)/withsqlite: build @test -d $@ || git clone git://github.com/jvasile/withsqlite.git $@ - #@cd $@; git pull install: default mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/plinth @@ -38,16 +35,15 @@ install: default cp -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 - cp -r *.py modules templates vendor static $(DESTDIR)/usr/lib/python2.7/plinth + rsync -rl *.py modules templates vendor static --exclude static/doc --exclude .git/* $(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 - rm -rf $(DESTDIR)/usr/lib/python2.7/plinth/vendor/*/.git - cd $(DESTDIR)/usr/lib/python2.7/plinth; find -name '*.pyc' -exec rm {} \; - rm -rf $(DESTDIR)/usr/lib/python2.7/plinth/vendor/*/.git mkdir -p $(DESTDIR)/var/lib/plinth/cherrypy_sessions cp -r data/* $(DESTDIR)/var/lib/plinth rm -f $(DESTDIR)/var/lib/plinth/users/sqlite3.distrib -- cgit v1.2.3