Skip to content

Commit a682ef9

Browse files
Petr BaudisJunio C Hamano
authored andcommitted
[PATCH] Use $DESTDIR instead of $dest
$DESTDIR is more usual during the build than $dest and is what is usually used in the makefiles, so let's use it too. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent b05701c commit a682ef9

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Documentation/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bin=$(prefix)/bin
1111
mandir=$(prefix)/man
1212
man1=$(mandir)/man1
1313
man7=$(mandir)/man7
14+
# DESTDIR=
1415

1516
INSTALL=install
1617

@@ -33,9 +34,9 @@ man1: $(DOC_MAN1)
3334
man7: $(DOC_MAN7)
3435

3536
install:
36-
$(INSTALL) -m755 -d $(dest)/$(man1) $(dest)/$(man7)
37-
$(INSTALL) $(DOC_MAN1) $(dest)/$(man1)
38-
$(INSTALL) $(DOC_MAN7) $(dest)/$(man7)
37+
$(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
38+
$(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
39+
$(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
3940

4041
# 'include' dependencies
4142
git-diff-%.txt: diff-format.txt diff-options.txt

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ALL_CFLAGS = $(CFLAGS) $(DEFINES)
4040
prefix = $(HOME)
4141
bindir = $(prefix)/bin
4242
template_dir = $(prefix)/share/git-core/templates/
43-
# dest=
43+
# DESTDIR=
4444

4545
CC = gcc
4646
AR = ar
@@ -209,8 +209,8 @@ check:
209209
### Installation rules
210210

211211
install: $(PROG) $(SCRIPTS)
212-
$(INSTALL) -m755 -d $(dest)$(bindir)
213-
$(INSTALL) $(PROG) $(SCRIPTS) $(dest)$(bindir)
212+
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
213+
$(INSTALL) $(PROG) $(SCRIPTS) $(DESTDIR)$(bindir)
214214
$(MAKE) -C templates install
215215

216216
install-tools:

templates/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
INSTALL=install
44
prefix=$(HOME)
55
template_dir=$(prefix)/share/git-core/templates/
6-
# dest=
6+
# DESTDIR=
77

88
all: boilerplates custom
99
find blt
@@ -34,5 +34,5 @@ clean:
3434
rm -rf blt
3535

3636
install: all
37-
$(INSTALL) -d -m755 $(dest)$(template_dir)
38-
tar Ccf blt - . | tar Cxf $(dest)$(template_dir) -
37+
$(INSTALL) -d -m755 $(DESTDIR)$(template_dir)
38+
tar Ccf blt - . | tar Cxf $(DESTDIR)$(template_dir) -

tools/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ALL_CFLAGS = $(CFLAGS)
77
INSTALL=install
88
prefix=$(HOME)
99
bindir=$(prefix)/bin
10-
# dest=
10+
# DESTDIR=
1111

1212
PROGRAMS=git-mailsplit git-mailinfo
1313
SCRIPTS=git-applymbox git-applypatch
@@ -19,7 +19,7 @@ all: $(PROGRAMS)
1919

2020
install: $(PROGRAMS) $(SCRIPTS)
2121
$(INSTALL) -m755 -d $(dest)$(bindir)
22-
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bindir)
22+
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
2323

2424
clean:
2525
rm -f $(PROGRAMS) *.o

0 commit comments

Comments
 (0)