[PATCH] Install tools with "make install-tools".
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>
This commit is contained in:
parent
f6e1a4d6dc
commit
8cc393068a
4
Makefile
4
Makefile
@ -195,12 +195,16 @@ test: all
|
|||||||
doc:
|
doc:
|
||||||
$(MAKE) -C Documentation all
|
$(MAKE) -C Documentation all
|
||||||
|
|
||||||
|
install-tools:
|
||||||
|
$(MAKE) -C tools install
|
||||||
|
|
||||||
install-doc:
|
install-doc:
|
||||||
$(MAKE) -C Documentation install
|
$(MAKE) -C Documentation install
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o mozilla-sha1/*.o ppc/*.o $(PROG) $(LIB_FILE)
|
rm -f *.o mozilla-sha1/*.o ppc/*.o $(PROG) $(LIB_FILE)
|
||||||
rm -f git-core-*.tar.gz git-core.spec
|
rm -f git-core-*.tar.gz git-core.spec
|
||||||
|
$(MAKE) -C tools/ clean
|
||||||
$(MAKE) -C Documentation/ clean
|
$(MAKE) -C Documentation/ clean
|
||||||
|
|
||||||
backup: clean
|
backup: clean
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Make Linus git-tools
|
||||||
|
#
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -O2
|
COPTS=-O2
|
||||||
|
CFLAGS=-g $(COPTS) -Wall
|
||||||
|
INSTALL=install
|
||||||
HOME=$(shell echo $$HOME)
|
HOME=$(shell echo $$HOME)
|
||||||
|
prefix=$(HOME)
|
||||||
|
bin=$(prefix)/bin
|
||||||
|
# dest=
|
||||||
|
|
||||||
PROGRAMS=mailsplit mailinfo
|
PROGRAMS=mailsplit mailinfo
|
||||||
SCRIPTS=applymbox applypatch
|
SCRIPTS=applymbox applypatch
|
||||||
@ -8,7 +16,8 @@ SCRIPTS=applymbox applypatch
|
|||||||
all: $(PROGRAMS)
|
all: $(PROGRAMS)
|
||||||
|
|
||||||
install: $(PROGRAMS) $(SCRIPTS)
|
install: $(PROGRAMS) $(SCRIPTS)
|
||||||
cp -f $(PROGRAMS) $(SCRIPTS) $(HOME)/bin/
|
$(INSTALL) -m755 -d $(dest)$(bin)
|
||||||
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bin)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(PROGRAMS) *.o
|
rm -f $(PROGRAMS) *.o
|
||||||
|
Loading…
Reference in New Issue
Block a user