diff options
author | Claudio Bandera <claudio.bandera@kit.edu> | 2015-09-17 17:52:40 +0200 |
---|---|---|
committer | Claudio Bandera <claudio.bandera@kit.edu> | 2015-09-17 17:52:40 +0200 |
commit | f16f1e67a2f2908bfb11fa67f1a5185bc0b2be0f (patch) | |
tree | e4b1bbfb70317f0cb5247b3416ceeb6621a52be4 /Makefile | |
parent | 4a7d636bad0d03af22f440bef9bd141bfc0dc309 (diff) | |
parent | 1f6a8f84946a0cb6936916f47b5a3870fa12a5a6 (diff) | |
download | git-sonar-f16f1e67a2f2908bfb11fa67f1a5185bc0b2be0f.tar.gz git-sonar-f16f1e67a2f2908bfb11fa67f1a5185bc0b2be0f.zip |
Merge branch 'master' into feature/stash_indicator
Conflicts:
prompt.bash
test
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e73c9f --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +SOURCES=git-radar radar-base.sh prompt.zsh prompt.bash fetch.sh +PREFIX=$(HOME)/.local + +all: + @echo 'Simple Install script for *git-radar* ' + @echo 'For a normal installation for your user only use:' + @echo ' make install' + @echo '' + @echo 'If you want to install *git-radar* system wide you should change' + @echo 'the prefix' + @echo '' + @echo ' PREFIX=/usr/local/bin make install' + @echo '' + @echo 'For a development install (symlinking files) do:' + @echo '' + @echo ' make develop' + +.PHONY: install develop + +install: $(SOURCES) + @echo 'Installing in ' $(PREFIX)/bin + cp git-radar $(PREFIX)/bin + cp radar-base.sh $(PREFIX)/bin + cp prompt.zsh $(PREFIX)/bin + cp prompt.bash $(PREFIX)/bin + cp fetch.sh $(PREFIX)/bin + + +develop: $(SOURCES) + @echo 'Symlinking in ' $(PREFIX)/bin + ln -s $(PWD)/git-radar $(PREFIX)/bin/git-radar + ln -s $(PWD)/radar-base.sh $(PREFIX)/bin/radar-base.sh + ln -s $(PWD)/prompt.zsh $(PREFIX)/bin/prompt.zsh + ln -s $(PWD)/prompt.bash $(PREFIX)/bin/prompt.bash + ln -s $(PWD)/fetch.sh $(PREFIX)/bin/fetch.sh |