summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMax Linke <max_linke@gmx.de>2015-09-01 11:56:51 +0200
committerMax Linke <max_linke@gmx.de>2015-09-01 17:13:17 +0200
commit1356a5100c272c77d39a2639ecb5c3d63992990f (patch)
tree57722a0c5ff0c76a4436939921a38ae65135bc66 /Makefile
parenta1d45c9b652ae50fc7179aab29a1fff8cf7e2dc7 (diff)
downloadgit-sonar-1356a5100c272c77d39a2639ecb5c3d63992990f.tar.gz
git-sonar-1356a5100c272c77d39a2639ecb5c3d63992990f.zip
Add Makefile
This will make it easier to install the tool. Currently everything is just copied into the home directory. But nothing works I have to figure out a little bit how to make this run under Linux. The develop command can be used for quick iteration cycles.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
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