forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.mk
37 lines (33 loc) · 1.26 KB
/
git.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## Git
# only used for the mac binaries in contrib/mac/app/Makefile
GIT_SOURCE := $(BUILDDIR)/git-$(GIT_VER)/git
GIT_TARGET := $(build_libexecdir)/git
$(SRCDIR)/srccache/git-$(GIT_VER).tar.gz: | $(SRCDIR)/srccache
$(JLDOWNLOAD) $@ https://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.gz
$(BUILDDIR)/git-$(GIT_VER)/configure: $(SRCDIR)/srccache/git-$(GIT_VER).tar.gz
$(JLCHECKSUM) $<
cd $(BUILDDIR) && $(TAR) zxf $<
touch -c $@
$(BUILDDIR)/git-$(GIT_VER)/config.status: $(BUILDDIR)/git-$(GIT_VER)/configure
cd $(dir $@) && \
./configure $(CONFIGURE_COMMON) --bindir="$(build_libexecdir)"
touch -c $@
$(GIT_SOURCE): $(BUILDDIR)/git-$(GIT_VER)/config.status
$(MAKE) -C $(dir $<)
touch -c $@
$(BUILDDIR)/git-$(GIT_VER)/checked: $(GIT_SOURCE)
echo 1 > $@
$(GIT_TARGET): $(GIT_SOURCE)
$(call make-install,git-$(GIT_VER),NO_INSTALL_HARDLINKS=1 bindir="$(build_libexecdir)")
touch -c $@
clean-git:
-$(MAKE) -C $(BUILDDIR)/git-$(GIT_VER) clean
-rm -f $(GIT_OBJ_TARGET)
distclean-git:
-rm -rf $(SRCDIR)/srccache/git-$(GIT_VER).tar.gz \
$(BUILDDIR)/git-$(GIT_VER)
get-git: $(SRCDIR)/srccache/git-$(GIT_VER).tar.gz
configure-git: $(BUILDDIR)/git-$(GIT_VER)/config.status
compile-git: $(GIT_SOURCE)
check-git: $(BUILDDIR)/git-$(GIT_VER)/checked
install-git: $(GIT_TARGET)