summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 0000000000..5cc6d14ebc
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,25 @@
+#
+# Make Linus git-tools
+#
+CC=gcc
+CFLAGS = -O2 -g -Wall
+ALL_CFLAGS = $(CFLAGS)
+INSTALL=install
+prefix=$(HOME)
+bindir=$(prefix)/bin
+# DESTDIR=
+
+PROGRAMS=git-mailsplit git-mailinfo
+SCRIPTS=git-applymbox git-applypatch
+
+git-%: %.c
+ $(CC) $(ALL_CFLAGS) -o $@ $(filter %.c,$^)
+
+all: $(PROGRAMS)
+
+install: $(PROGRAMS) $(SCRIPTS)
+ $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
+ $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
+
+clean:
+ rm -f $(PROGRAMS) *.o