projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] git-clone-script: store where we cloned from in .git/branches/origin
[git.git]
/
tools
/
Makefile
diff --git
a/tools/Makefile
b/tools/Makefile
index
8e7252e
..
5c07cec
100644
(file)
--- a/
tools/Makefile
+++ b/
tools/Makefile
@@
-1,6
+1,14
@@
+#
+# Make Linus git-tools
+#
CC=gcc
CC=gcc
-CFLAGS=-Wall -O2
+COPTS=-O2
+CFLAGS=-g $(COPTS) -Wall
+INSTALL=install
HOME=$(shell echo $$HOME)
HOME=$(shell echo $$HOME)
+prefix=$(HOME)
+bin=$(prefix)/bin
+# dest=
PROGRAMS=mailsplit mailinfo
SCRIPTS=applymbox applypatch
PROGRAMS=mailsplit mailinfo
SCRIPTS=applymbox applypatch
@@
-8,7
+16,8
@@
SCRIPTS=applymbox applypatch
all: $(PROGRAMS)
install: $(PROGRAMS) $(SCRIPTS)
all: $(PROGRAMS)
install: $(PROGRAMS) $(SCRIPTS)
- cp -f $(PROGRAMS) $(SCRIPTS) $(HOME)/bin/
+ $(INSTALL) -m755 -d $(dest)$(bin)
+ $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bin)
clean:
rm -f $(PROGRAMS) *.o
clean:
rm -f $(PROGRAMS) *.o