Skip to content

Commit

Permalink
Fix makefile and submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
moacirosa committed Mar 12, 2012
1 parent 64ed16e commit a119d93
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Expand Up @@ -22,9 +22,6 @@
[submodule "src/bundle/vim-markdown"]
path = src/vim/bundle/vim-markdown
url = git://github.com/hallison/vim-markdown.git
[submodule "src/bundle/Command-T"]
path = src/vim/bundle/Command-T
url = git://git.wincent.com/command-t.git
[submodule "src/vim/bundle/Command-T"]
path = src/vim/bundle/Command-T
url = git://git.wincent.com/command-t.git
24 changes: 16 additions & 8 deletions Makefile
Expand Up @@ -3,30 +3,38 @@
# http://ubuntuforums.org/showthread.php?t=275202
#
#

START="$(shell pwd)"

help:
@echo "install - install + compile native things."
@echo "update - Download update for all plugins."

install: symlink submodules commandt fonts
install: symlink submodules fonts bye

symlink:
ln -sf ~+/src/vimrc ~/.vimrc
ln -sf ~+/src/gvimrc ~/.gvimrc
ln -sf ~+/src/vim ~/.vim
ln -sf "$(shell readlink -f "src/vimrc")" ~/.vimrc
ln -sf "$(shell readlink -f "src/gvimrc")" ~/.gvimrc
ln -sf "$(shell readlink -f "src/vim")" ~/.vim

submodules:
git submodule init
git submodule update

commandt:
cd src/vim/bundle/Command-T/ruby/command-t/;\
/usr/bin/ruby extconf.rb;\
make clean && make
cd src/vim/bundle/Command-T
ruby extconf.rb
make

fonts:
current="$(shell pwd)"
mkdir -p /usr/share/fonts/truetype/font-install
cp ~+/bin/Monaco.ttf /usr/share/fonts/truetype/font-install/Monaco.ttf
cp bin/Monaco.ttf /usr/share/fonts/truetype/font-install/Monaco.ttf
fc-cache -fv
cd "$(START)"

update:
git submodule foreach git pull origin master

bye:
@echo "Congratulations! You did!"
6 changes: 6 additions & 0 deletions README.markdown
@@ -0,0 +1,6 @@
Requirements
------------

* Vim-Nox
* Exuberant CTags

0 comments on commit a119d93

Please sign in to comment.