2005-07-23 04:09:20 +02:00
|
|
|
#
|
|
|
|
# Make Linus git-tools
|
|
|
|
#
|
2005-04-12 08:46:50 +02:00
|
|
|
CC=gcc
|
2005-08-06 07:36:15 +02:00
|
|
|
CFLAGS = -O2 -g -Wall
|
|
|
|
ALL_CFLAGS = $(CFLAGS)
|
2005-07-23 04:09:20 +02:00
|
|
|
INSTALL=install
|
|
|
|
prefix=$(HOME)
|
2005-07-31 21:06:22 +02:00
|
|
|
bindir=$(prefix)/bin
|
2005-08-05 01:56:38 +02:00
|
|
|
# DESTDIR=
|
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
|
2005-08-06 07:36:15 +02:00
|
|
|
$(CC) $(ALL_CFLAGS) -o $@ $(filter %.c,$^)
|
2005-04-12 08:46:50 +02:00
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
install: $(PROGRAMS) $(SCRIPTS)
|
2005-08-16 20:28:02 +02:00
|
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
|
2005-08-05 01:56:38 +02:00
|
|
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
|
2005-04-12 08:46:50 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGRAMS) *.o
|