blob: a95c7f0733117a974f8a99190cab0e1134234239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-aa,v 1.13 2012/05/25 20:01:31 he Exp $
Use LDFLAGS and BSD_INSTALL_*.
--- Makefile.in.orig 2011-02-05 17:35:31.000000000 +0000
+++ Makefile.in
@@ -357,7 +357,7 @@ P=
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
-mandir=@datarootdir@/man
+mandir=@mandir@
MANSECT=1
DESTBIN=${DESTDIR}${bindir}
DESTMAN=${DESTDIR}${mandir}/man${MANSECT}
@@ -449,7 +449,7 @@ pure:$(P) ${OBJS}
gethost: gethost.c sh.err.h tc.const.h sh.h
rm -f gethost
- ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c
+ ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${LDFLAGS} $(srcdir)/gethost.c
tc.defs.c: gethost host.defs
@rm -f $@.tmp
@@ -596,20 +596,13 @@ vgrind:
install-strip: install
install: tcsh$(EXEEXT) install.catalogs install.man
- -mkdir -p ${DESTBIN}
- -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old
- cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT)
- -strip ${DESTBIN}/tcsh$(EXEEXT)
- chmod 755 ${DESTBIN}/tcsh$(EXEEXT)
+ ${BSD_INSTALL_PROGRAM} tcsh${EXEEXT} ${DESTBIN}/tcsh${EXEEXT}
install.catalogs:
@test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} install DESTDIR=${DESTDIR}) || exit 0
install.man: tcsh.man
- -mkdir -p ${DESTMAN}
- -rm -f ${DESTMAN}/tcsh.${MANSECT}
- cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT}
- chmod 444 ${DESTMAN}/tcsh.${MANSECT}
+ ${BSD_INSTALL_MAN} tcsh.man ${DESTMAN}/tcsh.${MANSECT}
# Amiga Unix
#install.man: tcsh.man
|