Skip to content

Commit

Permalink
Add ability to build and install git in deps/Makefile.
Browse files Browse the repository at this point in the history
Addresses JuliaLang#1709
  • Loading branch information
ViralBShah committed Feb 27, 2013
1 parent aa5068b commit 9434e48
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,43 @@ compile-patchelf: $(PATCHELF_SOURCE)
check-patchelf: patchelf-$(PATCHELF_VER)/checked
install-patchelf: $(PATCHELF_TARGET)

## Git

GIT_SOURCE = git-$(GIT_VER)/src/git
GIT_TARGET = $(BUILD)/bin-wrappers/git

compile-git: install-git
install-git: $(GIT_TARGET)

git-$(GIT_VER).tar.gz:
$(WGET) https://git-core.googlecode.com/files/$@
git-$(GIT_VER)/configure: git-$(GIT_VER).tar.gz
tar zxf $<
touch -c $@
git-$(GIT_VER)/config.status: git-$(GIT_VER)/configure
cd git-$(GIT_VER) && \
./configure $(CONFIGURE_COMMON)
touch -c $@
$(GIT_SOURCE): git-$(GIT_VER)/config.status
$(MAKE) -C git-$(GIT_VER)
touch -c $@
git-$(GIT_VER)/checked: $(GIT_SOURCE)
echo 1 > $@
$(GIT_TARGET): $(GIT_SOURCE) git-$(GIT_VER)/checked
$(MAKE) -C git-$(GIT_VER) install
touch -c $@

clean-git:
-$(MAKE) -C git-$(GIT_VER) clean
-rm -f $(GIT_OBJ_TARGET)
distclean-git:
-rm -rf git-$(GIT_VER).tar.gz git-$(GIT_VER)

get-git: git-$(GIT_VER).tar.gz
configure-git: git-$(GIT_VER)/config.status
compile-git: $(GIT_SOURCE)
check-git: git-$(GIT_VER)/checked
install-git: $(GIT_TARGET)

## phony targets ##

Expand Down
1 change: 1 addition & 0 deletions deps/Versions.make
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ GMP_VER=5.1.1
GLPK_VER = 4.47
ZLIB_VER = 1.2.7
PATCHELF_VER = 0.6
GIT_VER = 1.8.1.4

0 comments on commit 9434e48

Please sign in to comment.