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