projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of .
[git.git]
/
tools
/
Makefile
diff --git
a/tools/Makefile
b/tools/Makefile
index
a16b667
..
5cc6d14
100644
(file)
--- a/
tools/Makefile
+++ b/
tools/Makefile
@@
-2,25
+2,24
@@
# Make Linus git-tools
#
CC=gcc
# Make Linus git-tools
#
CC=gcc
-C
OPTS=-O2
-CFLAGS=-g $(COPTS) -Wall
+C
FLAGS = -O2 -g -Wall
+ALL_CFLAGS = $(CFLAGS)
INSTALL=install
INSTALL=install
-HOME=$(shell echo $$HOME)
prefix=$(HOME)
prefix=$(HOME)
-bin=$(prefix)/bin
-#
dest
=
+bin
dir
=$(prefix)/bin
+#
DESTDIR
=
PROGRAMS=git-mailsplit git-mailinfo
SCRIPTS=git-applymbox git-applypatch
git-%: %.c
PROGRAMS=git-mailsplit git-mailinfo
SCRIPTS=git-applymbox git-applypatch
git-%: %.c
- $(CC) $(CFLAGS) -o $@ $(filter %.c,$^)
+ $(CC) $(
ALL_
CFLAGS) -o $@ $(filter %.c,$^)
all: $(PROGRAMS)
install: $(PROGRAMS) $(SCRIPTS)
all: $(PROGRAMS)
install: $(PROGRAMS) $(SCRIPTS)
- $(INSTALL) -m755 -d $(
dest)$(bin
)
- $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(
dest)$(bin
)
+ $(INSTALL) -m755 -d $(
DESTDIR)$(bindir
)
+ $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(
DESTDIR)$(bindir
)
clean:
rm -f $(PROGRAMS) *.o
clean:
rm -f $(PROGRAMS) *.o