Skip to content

Commit

Permalink
use Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1cht committed Sep 25, 2017
1 parent 5b05e4b commit 336bdaa
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .bash_profile

This file was deleted.

4 changes: 0 additions & 4 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
alias vv="g++ --std=c++11 -O2 -Wall"
alias ls='ls -Ga'
alias mkdir='mkdir -p'
export PATH="$PATH:"/Applications/microchip/xc8/v1.35/bin""
export PATH=$PATH:/usr/local/share/git-core/contrib/diff-highlight
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="$PATH":/Users/RYK6U0327/isrb2
export PATH="$HOME/.rbenv/bin:$PATH"

# C で標準出力をクリップボードにコピーする
# mollifier delta blog : http://mollifier.hatenablog.com/entry/20100317/p1
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.swp
*~
.DS_Store
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ command! C call s:C()
nmap <F5> :C<CR>
function! s:C()
:w
:!g++ --std=c++11 -O2 -Wall % -o x
:!g++ --std=c++14 -O2 -Wall % -o x
:endfunction

" F6キーでmake
Expand Down
4 changes: 2 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ alias md2pdf-ref='pandoc -f markdown -V documentclass=ltjarticle -V geometry:mar
alias -g C='| pbcopy'

export PATH=/opt/local/bin:/opt/local/sbin:~/bin:$PATH
export GOPATH=$HOME/.go/
export PATH=$HOME/.rbenv/bin:~/Library/Python/2.7/bin:~/.go/bin:$PATH
export PATH=/Applications/microchip/xc8/v1.35/bin:$PATH
export PATH=/usr/local/share/git-core/contrib/diff-highlight:$PATH
export PATH=/Users/RYK6U0327/isrb2:$PATH
export GOPATH=$HOME/.go/
export PATH=$HOME/isrb2:$PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
eval "$(rbenv init -)"
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
EXCLUDES = .DS_Store .git .gitignore .gitmodules

all:
@$(foreach val, $(filter-out $(EXCLUDES), $(wildcard .??*)), ln -sfnv $(abspath $(val)) $(HOME)/$(val);)

clean:
@$(foreach val, $(filter-out $(EXCLUDES), $(wildcard .??*)), unlink $(HOME)/$(val);)
7 changes: 4 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

cd `dirname $0`
cd dirname $0
ABSDIR=`pwd`

DOT_FILES=(.bashrc .bash_profile .vimrc .zshrc)
DOT_FILES=(.bashrc .vimrc .zshrc)

for file in ${DOT_FILES[@]}
do
ln -s ./$file $HOME/$file
ln -s $ABSDIR/$file $HOME/$file
done

0 comments on commit 336bdaa

Please sign in to comment.