all:: git qgit $(MAKE) help help:: @echo "----------------------------------------" @echo ' Usage ' @echo "----------------------------------------" @echo 'Add /usr/local/bin to your path. Eg, edit ~/.profile' @echo 'Then configure git to know about you:' @echo ' git config --global user.name "Your Name Comes Here"' @echo ' git config --global user.email you@yourdomain.example.com' @echo 'To create a repo' @echo ' git init' @echo ' git add .' @echo ' git commit' @echo 'To run a server' @echo ' git-daemon --verbose --export-all' @echo ' / --base-path=/Volumes/Internal500GB/WebServer/iolanguage/scm/git' @echo 'To launch it at boot time' @echo ' create a launch file in /Library/LaunchDaemons/git.plist' @echo 'The repo can be fetched elsewhere by:' @echo ' git clone git://www.iolanguage.com/Io' @echo "----------------------------------------" clean:: rm -rf qgit rm -rf git-1.5.3 rm -rf .cache git: .cache/git-1.5.3.tar.bz2 tar jxf .cache/git-1.5.3.tar.bz2 $(MAKE) -C git-1.5.3 configure cd git-1.5.3 ; ./configure --prefix=/usr/local $(MAKE) -C git-1.5.3 all sudo $(MAKE) -C git-1.5.3 install qgit:: git .cache/qgit-2.0.tar.bz2 tar jxf .cache/qgit-2.0.tar.bz2 cd qgit/src ; qmake ; xcodebuild cd qgit/src/build/Default/qgit.app/Contents/MacOS ; mv qgit qgit-bin ; echo "#!/bin/bash" > qgit cd qgit/src/build/Default/qgit.app/Contents/MacOS ; echo "PATH=$PATH:/usr/local/bin /Applications/qgit.app/Contents/MacOS/qgit-bin" >> qgit cd qgit/src/build/Default ; chmod a+x qgit.app/Contents/MacOS/qgit ; sudo cp -r qgit.app /Applications .cache/git-1.5.3.tar.bz2: mkdir -p .cache ; cd .cache ; curl http://kernel.org/pub/software/scm/git/git-1.5.3.tar.bz2 -O .cache/qgit-2.0.tar.bz2:: mkdir -p .cache ; cd .cache ; curl http://easynews.dl.sourceforge.net/sourceforge/qgit/qgit-2.0.tar.bz2 -O