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