]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Makefile.in
dbe7ff255d92992dd3ec19b8ebe5bbda002d9746
[ncurses.git] / Makefile.in
1 # $Id: Makefile.in,v 1.72 2019/02/02 19:44:52 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2018,2019 Free Software Foundation, Inc.                #
4 #                                                                            #
5 # Permission is hereby granted, free of charge, to any person obtaining a    #
6 # copy of this software and associated documentation files (the "Software"), #
7 # to deal in the Software without restriction, including without limitation  #
8 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
9 # with modifications, sublicense, and/or sell copies of the Software, and to #
10 # permit persons to whom the Software is furnished to do so, subject to the  #
11 # following conditions:                                                      #
12 #                                                                            #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software.                        #
15 #                                                                            #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
19 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
22 # DEALINGS IN THE SOFTWARE.                                                  #
23 #                                                                            #
24 # Except as contained in this notice, the name(s) of the above copyright     #
25 # holders shall not be used in advertising or otherwise to promote the sale, #
26 # use or other dealings in this Software without prior written               #
27 # authorization.                                                             #
28 ##############################################################################
29 #
30 # Author: Thomas E. Dickey 1996-on
31 #
32 # Makefile for ncurses miscellany directory
33 #
34 # This makes/installs the terminfo database
35 #
36 # The variable 'srcdir' refers to the source-distribution, and can be set with
37 # the configure script by "--srcdir=DIR".
38 #
39 # The rules are organized to produce the libraries for the configured models,
40 # and the programs with the configured default model.
41
42 # turn off _all_ suffix rules; we'll generate our own
43 .SUFFIXES :
44
45 SHELL           = @SHELL@
46 VPATH           = @srcdir@
47 THIS            = Makefile
48
49 CF_MFLAGS       = @cf_cv_makeflags@
50 @SET_MAKE@
51
52 DESTDIR         = @DESTDIR@
53 top_srcdir      = @top_srcdir@
54 srcdir          = @srcdir@
55 prefix          = @prefix@
56 exec_prefix     = @exec_prefix@
57 bindir          = @bindir@
58 libdir          = @libdir@
59 datarootdir     = @datarootdir@
60 datadir         = @datadir@
61 includesubdir   = @includesubdir@
62
63 INCLUDEDIR      = $(DESTDIR)$(includedir)$(includesubdir)
64
65 tabsetdir       = $(datadir)/tabset
66 ticdir          = @TERMINFO@
67 ticfile         = $(ticdir).db
68 source          = @TERMINFO_SRC@
69
70 INSTALL         = @INSTALL@
71 INSTALL_PROGRAM = @INSTALL_PROGRAM@
72 INSTALL_SCRIPT  = @INSTALL_SCRIPT@
73 INSTALL_DATA    = @INSTALL_DATA@
74
75 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
76
77 ################################################################################
78 all \
79 sources ::
80
81 @MAKE_DATABASE@all \
82 @MAKE_DATABASE@sources :: terminfo.tmp 
83
84 depend :
85
86 @MAKE_DATABASE@install :: @MISC_INSTALL_DATA@
87
88 @MAKE_DATABASE@install.data ::  terminfo.tmp \
89 @MAKE_DATABASE@         $(DESTDIR)$(libdir) \
90 @MAKE_DATABASE@         $(DESTDIR)$(datadir) \
91 @MAKE_DATABASE@         $(DESTDIR)$(tabsetdir)
92 @MAKE_DATABASE@ DESTDIR=${DESTDIR} \
93 @MAKE_DATABASE@ prefix=${prefix} \
94 @MAKE_DATABASE@ exec_prefix=${exec_prefix} \
95 @MAKE_DATABASE@ bindir=${bindir} \
96 @MAKE_DATABASE@ top_srcdir=${top_srcdir} \
97 @MAKE_DATABASE@ srcdir=${srcdir} \
98 @MAKE_DATABASE@ datadir=${datadir} \
99 @MAKE_DATABASE@ ticdir=${ticdir} \
100 @MAKE_DATABASE@ source=terminfo.tmp \
101 @MAKE_DATABASE@ cross_compiling=@cross_compiling@ \
102 @MAKE_DATABASE@ $(SHELL) ./run_tic.sh
103 @MAKE_DATABASE@ @cd $(srcdir)/tabset && \
104 @MAKE_DATABASE@         $(SHELL) -c 'for i in * ; do \
105 @MAKE_DATABASE@                 if test -f $$i ; then \
106 @MAKE_DATABASE@                 echo installing $$i; \
107 @MAKE_DATABASE@                 $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
108 @MAKE_DATABASE@                 fi; done'
109 install.data ::
110         @echo "finished $@"
111
112 NCURSES_CONFIG  = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@@cf_config_suffix@-config
113
114 install \
115 install.libs :: $(DESTDIR)$(bindir) ncurses-config
116         $(INSTALL_SCRIPT) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
117
118 # Make a list of the files that gen-pkgconfig might create:
119 @MAKE_PC_FILES@PC_FILES = \
120 @MAKE_PC_FILES@ @LIB_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
121 @MAKE_PC_FILES@ @TINFO_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
122 @MAKE_PC_FILES@ @TICS_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
123 @MAKE_PC_FILES@ @PANEL_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
124 @MAKE_PC_FILES@ @MENU_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
125 @MAKE_PC_FILES@ @FORM_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
126 @MAKE_PC_FILES@ @CXX_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc
127
128 # some packagers prefer to be able to construct pc-files on servers where
129 # pkg-config is not installed.  Work around that by creating the library
130 # directory during this rule:
131 @MAKE_PC_FILES@install \
132 @MAKE_PC_FILES@install.libs :: pc-files
133 @MAKE_PC_FILES@ @$(SHELL) -c 'case "x$(DESTDIR)$(PKG_CONFIG_LIBDIR)" in \
134 @MAKE_PC_FILES@         (x/*) \
135 @MAKE_PC_FILES@                 mkdir -p $(DESTDIR)$(PKG_CONFIG_LIBDIR); \
136 @MAKE_PC_FILES@                 for name in $(PC_FILES); do \
137 @MAKE_PC_FILES@                         test -f $$name || continue; \
138 @MAKE_PC_FILES@                         echo installing $$name; \
139 @MAKE_PC_FILES@                         $(INSTALL_DATA) $$name $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; \
140 @MAKE_PC_FILES@                 done \
141 @MAKE_PC_FILES@                 ;; \
142 @MAKE_PC_FILES@         (*) \
143 @MAKE_PC_FILES@                 echo "...skip actual install: no destination was given" ; \
144 @MAKE_PC_FILES@                 ;; \
145 @MAKE_PC_FILES@         esac'
146
147 @MAKE_PC_FILES@all \
148 @MAKE_PC_FILES@sources :: pc-files
149 @MAKE_PC_FILES@pc-files :
150 @MAKE_PC_FILES@ $(SHELL) ./gen-pkgconfig
151 @MAKE_PC_FILES@ -touch $@
152
153 terminfo.tmp : run_tic.sed $(source)
154         echo '** adjusting tabset paths'
155         sed -f run_tic.sed $(source) >terminfo.tmp
156
157 run_tic.sed :
158         WHICH_XTERM=@WHICH_XTERM@ \
159         XTERM_KBS=@XTERM_KBS@ \
160         datadir=${datadir} \
161         $(SHELL) $(srcdir)/gen_edit.sh >$@
162
163 $(DESTDIR)$(bindir) \
164 $(DESTDIR)$(libdir) \
165 $(DESTDIR)$(datadir) \
166 $(DESTDIR)$(tabsetdir) :
167         mkdir -p $@
168
169 uninstall : @MISC_UNINSTALL_DATA@ uninstall.libs
170
171 uninstall.data :
172         -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
173         -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
174         -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
175
176 uninstall.libs :
177         -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
178 @MAKE_PC_FILES@ @$(SHELL) -c 'case x$(DESTDIR)$(PKG_CONFIG_LIBDIR) in \
179 @MAKE_PC_FILES@ (x/*) \
180 @MAKE_PC_FILES@         for name in $(PC_FILES); do \
181 @MAKE_PC_FILES@                 test -f $$name || continue; \
182 @MAKE_PC_FILES@                 echo uninstalling $$name; \
183 @MAKE_PC_FILES@                 rm -f $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; \
184 @MAKE_PC_FILES@         done \
185 @MAKE_PC_FILES@         ;; \
186 @MAKE_PC_FILES@ esac'
187
188 tags :
189
190 @MAKE_UPPER_TAGS@TAGS :
191
192 mostlyclean :
193 @MAKE_DATABASE@ -rm -f terminfo.tmp
194 @MAKE_DATABASE@ -rm -f run_tic.sed
195 @MAKE_PC_FILES@ -rm -f pc-files $(PC_FILES)
196         -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
197
198 clean :: mostlyclean
199
200 distclean : clean
201 @MAKE_PC_FILES@ -rm -f gen-pkgconfig
202         -rm -f Makefile run_tic.sh ncurses-config
203
204 realclean : distclean
205
206 ###############################################################################
207 # The remainder of this file is automatically generated during configuration
208 ###############################################################################