1#
2# Make Linus git-tools
3#
4CC=gcc
5CFLAGS = -O2 -g -Wall
6ALL_CFLAGS = $(CFLAGS)
7INSTALL=install
8prefix=$(HOME)
9bindir=$(prefix)/bin
10# DESTDIR=
11
12PROGRAMS=git-mailsplit git-mailinfo
13SCRIPTS=git-applymbox git-applypatch
14
15git-%: %.c
16 $(CC) $(ALL_CFLAGS) -o $@ $(filter %.c,$^)
17
18all: $(PROGRAMS)
19
20install: $(PROGRAMS) $(SCRIPTS)
21 $(INSTALL) -m755 -d $(dest)$(bindir)
22 $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
23
24clean:
25 rm -f $(PROGRAMS) *.o