1 # $Id: Makefile.in,v 1.69 2018/02/10 20:53:47 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2017,2018 Free Software Foundation, Inc. #
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: #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software. #
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. #
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 #
28 ##############################################################################
30 # Author: Thomas E. Dickey 1996-on
32 # Makefile for ncurses miscellany directory
34 # This makes/installs the terminfo database
36 # The variable 'srcdir' refers to the source-distribution, and can be set with
37 # the configure script by "--srcdir=DIR".
39 # The rules are organized to produce the libraries for the configured models,
40 # and the programs with the configured default model.
42 # turn off _all_ suffix rules; we'll generate our own
49 CF_MFLAGS = @cf_cv_makeflags@
53 top_srcdir = @top_srcdir@
56 exec_prefix = @exec_prefix@
59 datarootdir = @datarootdir@
61 includesubdir = @includesubdir@
63 INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
65 tabsetdir = $(datadir)/tabset
67 ticfile = $(ticdir).db
68 source = @TERMINFO_SRC@
71 INSTALL_PROGRAM = @INSTALL_PROGRAM@
72 INSTALL_SCRIPT = @INSTALL_SCRIPT@
73 INSTALL_DATA = @INSTALL_DATA@
75 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
77 ################################################################################
79 sources :: terminfo.tmp
83 install : @MISC_INSTALL_DATA@ install.libs
85 install.data : terminfo.tmp \
87 $(DESTDIR)$(datadir) \
88 $(DESTDIR)$(tabsetdir)
91 exec_prefix=${exec_prefix} \
93 top_srcdir=${top_srcdir} \
98 cross_compiling=@cross_compiling@ \
100 @cd $(srcdir)/tabset && \
101 $(SHELL) -c 'for i in * ; do \
102 if test -f $$i ; then \
103 echo installing $$i; \
104 $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
107 NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@@cf_config_suffix@-config
109 install.libs :: $(DESTDIR)$(bindir) ncurses-config
110 $(INSTALL_SCRIPT) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
112 # Make a list of the files that gen-pkgconfig might create:
113 @MAKE_PC_FILES@PC_FILES = \
114 @MAKE_PC_FILES@ @LIB_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
115 @MAKE_PC_FILES@ @TINFO_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
116 @MAKE_PC_FILES@ @TICS_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
117 @MAKE_PC_FILES@ @PANEL_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
118 @MAKE_PC_FILES@ @MENU_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
119 @MAKE_PC_FILES@ @FORM_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc \
120 @MAKE_PC_FILES@ @CXX_NAME@@USE_ARG_SUFFIX@@PC_MODULE_SUFFIX@.pc
122 # some packagers prefer to be able to construct pc-files on servers where
123 # pkg-config is not installed. Work around that by creating the library
124 # directory during this rule:
125 @MAKE_PC_FILES@install.libs :: pc-files
126 @MAKE_PC_FILES@ @$(SHELL) -c 'case "x$(DESTDIR)$(PKG_CONFIG_LIBDIR)" in \
127 @MAKE_PC_FILES@ (x/*) \
128 @MAKE_PC_FILES@ mkdir -p $(DESTDIR)$(PKG_CONFIG_LIBDIR); \
129 @MAKE_PC_FILES@ for name in $(PC_FILES); do \
130 @MAKE_PC_FILES@ test -f $$name || continue; \
131 @MAKE_PC_FILES@ echo installing $$name; \
132 @MAKE_PC_FILES@ $(INSTALL_DATA) $$name $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; \
133 @MAKE_PC_FILES@ done \
135 @MAKE_PC_FILES@ (*) \
136 @MAKE_PC_FILES@ echo "...skip actual install: no destination was given" ; \
138 @MAKE_PC_FILES@ esac'
141 @MAKE_PC_FILES@sources :: pc-files
142 @MAKE_PC_FILES@pc-files :
143 @MAKE_PC_FILES@ $(SHELL) ./gen-pkgconfig
144 @MAKE_PC_FILES@ -touch $@
146 terminfo.tmp : run_tic.sed $(source)
147 echo '** adjusting tabset paths'
148 sed -f run_tic.sed $(source) >terminfo.tmp
151 WHICH_XTERM=@WHICH_XTERM@ \
152 XTERM_KBS=@XTERM_KBS@ \
154 $(SHELL) $(srcdir)/gen_edit.sh >$@
156 $(DESTDIR)$(bindir) \
157 $(DESTDIR)$(libdir) \
158 $(DESTDIR)$(datadir) \
159 $(DESTDIR)$(tabsetdir) :
162 uninstall : @MISC_UNINSTALL_DATA@ uninstall.libs
165 -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
166 -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
167 -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
170 -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
171 @MAKE_PC_FILES@ @$(SHELL) -c 'case x$(DESTDIR)$(PKG_CONFIG_LIBDIR) in \
172 @MAKE_PC_FILES@ (x/*) \
173 @MAKE_PC_FILES@ for name in $(PC_FILES); do \
174 @MAKE_PC_FILES@ test -f $$name || continue; \
175 @MAKE_PC_FILES@ echo uninstalling $$name; \
176 @MAKE_PC_FILES@ rm -f $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; \
177 @MAKE_PC_FILES@ done \
179 @MAKE_PC_FILES@ esac'
183 @MAKE_UPPER_TAGS@TAGS :
188 @MAKE_PC_FILES@ -rm -f pc-files $(PC_FILES)
189 -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
194 @MAKE_PC_FILES@ -rm -f gen-pkgconfig
195 -rm -f Makefile run_tic.sh ncurses-config
197 realclean : distclean
199 ###############################################################################
200 # The remainder of this file is automatically generated during configuration
201 ###############################################################################