[d6e139]: src / Makefile.in  Maximize  Restore  History

Download this file

117 lines (94 with data), 3.4 kB

  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
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#
# Master Makefile for man, apropos, whatis, and makewhatis
#
# Copyright (c) 1990, 1991, John W. Eaton.
# Copyright (c) 1994-2001, Andries E. Brouwer
#
# You may distribute under the terms of the GNU General Public
# License as specified in the README file that comes with the man 1.0
# distribution.
#
# various changes - aeb, March 1994
# use of catalogs - aeb, June 1994
CC = @CC@
INSTALL = @INSTALL@
pager = @pager@
GS = -DGREPSILENT=\'@grepsilent@\'
DEFS = @DEFS@ $(GS)
CWARN = -Wall -Wstrict-prototypes -Wmissing-prototypes
CWARNNP = -Wall
.c.o:
$(CC) -c $(CWARN) $(CFLAGS) -I. $(DEFS) $<
# LDFLAGS = -g
LDFLAGS = -s
LIBOBJS = @LIBOBJS@
all: man man.conf apropos whatis makewhatis
MANOBJS = man.o manfile.o manpath.o man-config.o man-getopt.o \
man-iconv.o to_cat.o different.o gripes.o glob.o util.o msg.o
man: $(MANOBJS) $(LIBOBJS)
$(CC) $(LDFLAGS) $(GS) -o man $(MANOBJS) $(LIBOBJS) $(LIBS)
msg.c gripedefs.h: ../msgs/mess.en makemsg
./makemsg ../msgs/mess.en gripedefs.h msg.c
# glob.c does not have prototypes
glob.o: glob.c ndir.h
$(CC) -c $(CWARNNP) $(CFLAGS) -I. $(DEFS) glob.c
man-config.o man-getopt.o man.o manpath.o to_cat.o: defs.h
different.o man.o: different.h
man.o manfile.o: glob.h
different.o gripes.o man-config.o man-getopt.o man.o manpath.o util.o: gripes.h gripedefs.h
different.o man-config.o man-getopt.o man.o manpath.o: man-config.h
gripes.o man-config.o man-getopt.o man.o manpath.o util.o: man.h
man-getopt.o man.o manpath.o: man-getopt.h
man.o manfile.o to_cat.o: manfile.h
man.o man-iconv.o: man-iconv.h
man.o manpath.o: manpath.h
man-config.o: paths.h
different.o man-config.o man-getopt.o man.o manpath.o util.o: util.h
man-getopt.o: version.h
msg.o: msg.c
gripes.o: ../catopen/catopen.c
man.conf: man.conf.in ../conf_script
../conf_script man.conf
paths.h: paths.h.in ../conf_script
../conf_script paths.h
version.h: ../version Makefile
vers=`sed -e s/man-// ../version`; \
echo "static char version[] = \"$$vers\";" > version.h
apropos: apropos.sh Makefile
rm -f apropos
sed -e 's,%apropos_or_whatis%,apropos,' \
-e 's,%version%,@version@,' \
-e 's,%pager%,@pager@,' -e 's,%manpathoption%,@manpathoption@,' \
-e 's,%grepsilent%,@grepsilent@,' \
apropos.sh > apropos
chmod +x apropos
whatis: apropos.sh Makefile
rm -f whatis
sed -e 's,%apropos_or_whatis%,whatis,' \
-e 's,%version%,@version@,' \
-e 's,%pager%,@pager@,' -e 's,%manpathoption%,@manpathoption@,' \
-e 's,%grepsilent%,@grepsilent@,' \
apropos.sh > whatis
chmod +x whatis
makewhatis: makewhatis.sh Makefile
rm -f makewhatis
sed -e 's,%version%,@version@,' \
-e 's,%awk%,@awk@,' makewhatis.sh > makewhatis
chmod +x makewhatis
MANCONFIG=$(PREFIX)@man_config_file@
install: all apropos whatis makewhatis
mkdir -p $(PREFIX)@bindir@
$(INSTALL) -c @man_install_flags@ man $(PREFIX)@man@
$(INSTALL) -c -m 755 apropos $(PREFIX)@apropos@
$(INSTALL) -c -m 755 whatis $(PREFIX)@whatis@
$(INSTALL) -c -m 755 man2dvi $(PREFIX)@man2dvi@
mkdir -p $(PREFIX)@sbindir@
$(INSTALL) -c -m 754 makewhatis $(PREFIX)@makewhatis@
mkdir -p $(PREFIX)@man_config_dir@
if [ -f $(MANCONFIG) ]; then mv $(MANCONFIG) $(MANCONFIG).orig; fi
$(INSTALL) -c -m 644 man.conf $(MANCONFIG)
clean:
rm -f *.o *~ core man apropos whatis makewhatis makemsg
spotless: clean
rm -f Makefile config.status paths.h version.h man.conf
rm -f gripedefs.h msg.c mess.*.cat