summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c34a2c)
raw | patch | inline | side by side (parent: 4c34a2c)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 13 Jan 2006 05:42:25 +0000 (21:42 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 13 Jan 2006 05:51:23 +0000 (21:51 -0800) |
This is not invoked by any other target (most notably, "make
install" does not), but is provided as a convenience for people
who are building from the source.
Signed-off-by: Junio C Hamano <junkio@cox.net>
install" does not), but is provided as a convenience for people
who are building from the source.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index fa0cd8315fcc855e84b8c409f88d5e1a910e8ef4..37388119528f1d687116075760c31fe9715aeb13 100644 (file)
--- a/Makefile
+++ b/Makefile
LDFLAGS =
ALL_CFLAGS = $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
+STRIP ?= strip
prefix = $(HOME)
bindir = $(prefix)/bin
all:
$(MAKE) -C templates
+strip: $(PROGRAMS) git$X
+ $(STRIP) $(STRIP_OPTS) $(PROGRAMS) git$X
+
git$X: git.c $(LIB_FILE)
$(CC) -DGIT_EXEC_PATH='"$(bindir)"' -DGIT_VERSION='"$(GIT_VERSION)"' \
$(CFLAGS) $(COMPAT_CFLAGS) -o $@ $(filter %.c,$^) $(LIB_FILE)
$(MAKE) -C t/ clean
rm -f GIT-VERSION-FILE
-.PHONY: all install clean
+.PHONY: all install clean strip
.PHONY: .FORCE-GIT-VERSION-FILE