diff options
author | James Vasile <james@jamesvasile.com> | 2013-02-07 06:19:44 -0500 |
---|---|---|
committer | James Vasile <james@jamesvasile.com> | 2013-02-07 06:21:45 -0500 |
commit | 63d2c3ee6827d15e79e3509fc26cff6ffc7d83ef (patch) | |
tree | d5df32db3726fc35a6322d1e8d3122328a5e8bb7 /Makefile | |
parent | 84407751415464259f5a5d9a7aa5d0db9c4178c6 (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 |