8cc393068a
Match the main Makefile by separating COPTS from CFLAGS, defining INSTALL, prefix, and bin. Add a new target 'install-tools' to the main Makefile to install them. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
24 lines
376 B
Makefile
24 lines
376 B
Makefile
#
|
|
# Make Linus git-tools
|
|
#
|
|
CC=gcc
|
|
COPTS=-O2
|
|
CFLAGS=-g $(COPTS) -Wall
|
|
INSTALL=install
|
|
HOME=$(shell echo $$HOME)
|
|
prefix=$(HOME)
|
|
bin=$(prefix)/bin
|
|
# dest=
|
|
|
|
PROGRAMS=mailsplit mailinfo
|
|
SCRIPTS=applymbox applypatch
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
install: $(PROGRAMS) $(SCRIPTS)
|
|
$(INSTALL) -m755 -d $(dest)$(bin)
|
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bin)
|
|
|
|
clean:
|
|
rm -f $(PROGRAMS) *.o
|