2005-07-23 04:09:20 +02:00
|
|
|
#
|
|
|
|
# Make Linus git-tools
|
|
|
|
#
|
2005-04-12 08:46:50 +02:00
|
|
|
CC=gcc
|
2005-07-23 04:09:20 +02:00
|
|
|
COPTS=-O2
|
|
|
|
CFLAGS=-g $(COPTS) -Wall
|
|
|
|
INSTALL=install
|
2005-04-12 08:46:50 +02:00
|
|
|
HOME=$(shell echo $$HOME)
|
2005-07-23 04:09:20 +02:00
|
|
|
prefix=$(HOME)
|
2005-07-31 21:06:22 +02:00
|
|
|
bindir=$(prefix)/bin
|
2005-07-23 04:09:20 +02:00
|
|
|
# dest=
|
2005-04-12 08:46:50 +02:00
|
|
|
|
2005-07-24 03:46:27 +02:00
|
|
|
PROGRAMS=git-mailsplit git-mailinfo
|
|
|
|
SCRIPTS=git-applymbox git-applypatch
|
|
|
|
|
|
|
|
git-%: %.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(filter %.c,$^)
|
2005-04-12 08:46:50 +02:00
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
install: $(PROGRAMS) $(SCRIPTS)
|
2005-07-31 21:06:22 +02:00
|
|
|
$(INSTALL) -m755 -d $(dest)$(bindir)
|
|
|
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bindir)
|
2005-04-12 08:46:50 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGRAMS) *.o
|