[PATCH] Improve the compilation-time settings interface
[git/dscho.git] / tools / Makefile
bloba16b667964e49d2924b4c5a606598518e7575821
2 # Make Linus git-tools
4 CC=gcc
5 COPTS=-O2
6 CFLAGS=-g $(COPTS) -Wall
7 INSTALL=install
8 HOME=$(shell echo $$HOME)
9 prefix=$(HOME)
10 bin=$(prefix)/bin
11 # dest=
13 PROGRAMS=git-mailsplit git-mailinfo
14 SCRIPTS=git-applymbox git-applypatch
16 git-%: %.c
17 $(CC) $(CFLAGS) -o $@ $(filter %.c,$^)
19 all: $(PROGRAMS)
21 install: $(PROGRAMS) $(SCRIPTS)
22 $(INSTALL) -m755 -d $(dest)$(bin)
23 $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bin)
25 clean:
26 rm -f $(PROGRAMS) *.o