]> git.ipfire.org Git - thirdparty/bash.git/blob - lib/termcap/grot/Makefile.in
66e5d02f5f159da595d8070ce83dd279d22ac278
[thirdparty/bash.git] / lib / termcap / grot / Makefile.in
1 # Makefile for GNU termcap library.
2 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 #### Start of system configuration section. ####
19
20 srcdir = @srcdir@
21 VPATH = @srcdir@
22
23 CC = @CC@
24 AR = ar
25 RANLIB = @RANLIB@
26
27 INSTALL = @INSTALL@
28 INSTALL_DATA = @INSTALL_DATA@
29
30 MAKEINFO = makeinfo
31
32 DEFS = @DEFS@ -DTERMCAP_FILE=\"$(termcapfile)\"
33
34 CFLAGS = -g
35
36 prefix = @prefix@
37 exec_prefix = @exec_prefix@
38
39 # Directory in which to install libtermcap.a.
40 libdir = $(exec_prefix)/lib
41
42 # Directory in which to install termcap.h.
43 includedir = $(prefix)/include
44
45 # Directory in which to optionally also install termcap.h,
46 # so compilers besides gcc can find it by default.
47 # If it is empty or not defined, termcap.h will only be installed in
48 # includedir.
49 oldincludedir = /usr/include
50
51 # Directory in which to install the documentation info files.
52 infodir = $(prefix)/info
53
54 # File to which `install-data' should install the data file
55 # if --enable-install-termcap was given.
56 termcapfile = @termcapfile@
57
58 #### End of system configuration section. ####
59
60 SHELL = /bin/sh
61
62 SRCS = termcap.c tparam.c version.c
63 OBJS = termcap.o tparam.o version.o
64 HDRS = termcap.h
65 DISTFILES = $(SRCS) $(HDRS) ChangeLog COPYING README INSTALL NEWS \
66 termcap.src termcap.texi termcap.info* \
67 texinfo.tex Makefile.in configure configure.in mkinstalldirs install-sh
68
69 all: libtermcap.a info
70
71 .c.o:
72 $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
73
74 install: all installdirs @installdata@
75 $(INSTALL_DATA) libtermcap.a $(libdir)/libtermcap.a
76 -$(RANLIB) $(libdir)/libtermcap.a
77 cd $(srcdir); $(INSTALL_DATA) termcap.h $(includedir)/termcap.h
78 -cd $(srcdir); test -z "$(oldincludedir)" || \
79 $(INSTALL_DATA) termcap.h $(oldincludedir)/termcap.h
80 cd $(srcdir); for f in termcap.info*; \
81 do $(INSTALL_DATA) $$f $(infodir)/$$f; done
82
83 uninstall: @uninstalldata@
84 rm -f $(libdir)/libtermcap.a $(includedir)/termcap.h
85 test -z "$(oldincludedir)" || rm -f $(oldincludedir)/termcap.h
86 rm -f $(infodir)/termcap.info*
87
88 # These are separate targets to avoid trashing the user's existing
89 # termcap file unexpectedly.
90 install-data:
91 $(INSTALL_DATA) ${srcdir}/termcap.src ${termcapfile}
92
93 uninstall-data:
94 rm -f ${termcapfile}
95
96 installdirs:
97 $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(libdir) \
98 $(includedir) $(infodir)
99
100 Makefile: Makefile.in config.status
101 $(SHELL) config.status
102 config.status: configure
103 $(SHELL) config.status --recheck
104 configure: configure.in
105 cd $(srcdir) && autoconf
106
107 libtermcap.a: $(OBJS)
108 $(AR) rc $@ $(OBJS)
109 -$(RANLIB) $@
110
111 info: termcap.info
112
113 termcap.info: termcap.texi
114 $(MAKEINFO) $(srcdir)/termcap.texi --output=$@
115
116 TAGS: $(SRCS)
117 etags $(SRCS)
118
119 clean:
120 rm -f *.a *.o core
121
122 mostlyclean: clean
123
124 distclean: clean
125 rm -f Makefile config.status config.cache config.log
126
127 maintainer-clean: distclean
128 @echo "This command is intended for maintainers to use;"
129 @echo "rebuilding the deleted files requires makeinfo."
130 rm -f TAGS *.info*
131
132 dist: $(DISTFILES)
133 echo termcap-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
134 rm -rf `cat .fname`
135 mkdir `cat .fname`
136 ln $(DISTFILES) `cat .fname`
137 tar chzf `cat .fname`.tar.gz `cat .fname`
138 rm -rf `cat .fname` .fname