1 # $Id: Makefile.in,v 1.60 2012/08/11 21:31:56 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2011,2012 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@
62 tabsetdir = $(datadir)/tabset
64 ticfile = $(ticdir).db
65 source = @TERMINFO_SRC@
68 INSTALL_PROGRAM = @INSTALL_PROGRAM@
69 INSTALL_SCRIPT = @INSTALL_SCRIPT@
70 INSTALL_DATA = @INSTALL_DATA@
72 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
74 ################################################################################
79 sources :: terminfo.tmp
81 install : install.data install.libs
83 install.data : terminfo.tmp \
85 $(DESTDIR)$(datadir) \
86 $(DESTDIR)$(tabsetdir)
89 exec_prefix=${exec_prefix} \
91 top_srcdir=${top_srcdir} \
96 cross_compiling=@cross_compiling@ \
98 @cd $(srcdir)/tabset && \
99 $(SHELL) -c 'for i in * ; do \
100 if test -f $$i ; then \
101 echo installing $$i; \
102 $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
105 NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config
107 install.libs :: $(DESTDIR)$(bindir) ncurses-config
108 $(INSTALL_SCRIPT) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
110 @MAKE_PC_FILES@install.libs :: pc-files $(DESTDIR)$(PKG_CONFIG_LIBDIR)
111 @MAKE_PC_FILES@ $(SHELL) -c 'for name in *.pc; do $(INSTALL_DATA) $$name $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done'
113 @MAKE_PC_FILES@sources :: pc-files
114 @MAKE_PC_FILES@pc-files :
115 @MAKE_PC_FILES@ $(SHELL) ./gen-pkgconfig
116 @MAKE_PC_FILES@ touch $@
118 terminfo.tmp : run_tic.sed $(source)
119 echo '** adjusting tabset paths'
120 sed -f run_tic.sed $(source) >terminfo.tmp
123 WHICH_XTERM=@WHICH_XTERM@ \
124 XTERM_KBS=@XTERM_KBS@ \
126 $(SHELL) $(srcdir)/gen_edit.sh >$@
128 $(DESTDIR)$(bindir) \
129 $(DESTDIR)$(libdir) \
130 $(DESTDIR)$(datadir) \
131 $(DESTDIR)$(tabsetdir) \
132 $(DESTDIR)$(PKG_CONFIG_LIBDIR) :
135 uninstall : uninstall.data uninstall.libs
138 -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
139 -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
140 -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
143 -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
144 @MAKE_PC_FILES@ $(SHELL) -c 'for name in *.pc; do rm -f $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done'
148 @MAKE_UPPER_TAGS@TAGS :
153 @MAKE_PC_FILES@ -rm -f *.pc pc-files
154 -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
159 @MAKE_PC_FILES@ -rm -f gen-pkgconfig
160 -rm -f Makefile run_tic.sh ncurses-config
162 realclean : distclean
164 ###############################################################################
165 # The remainder of this file is automatically generated during configuration
166 ###############################################################################