]> ncurses.scripts.mit.edu Git - ncurses.git/blob - misc/Makefile.in
ncurses 5.7 - patch 20100703
[ncurses.git] / misc / Makefile.in
1 # $Id: Makefile.in,v 1.53 2010/05/15 20:25:20 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2009,2010 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           = /bin/sh
46 THIS            = Makefile
47
48 CF_MFLAGS       = @cf_cv_makeflags@
49 @SET_MAKE@
50
51 DESTDIR         = @DESTDIR@
52 top_srcdir      = @top_srcdir@
53 srcdir          = @srcdir@
54 prefix          = @prefix@
55 exec_prefix     = @exec_prefix@
56 bindir          = @bindir@
57 libdir          = @libdir@
58 datadir         = @datadir@
59
60 tabsetdir       = $(datadir)/tabset
61 ticdir          = @TERMINFO@
62 ticfile         = $(ticdir).db
63 source          = @TERMINFO_SRC@
64
65 INSTALL         = @INSTALL@
66 INSTALL_PROG    = @INSTALL_SCRIPT@
67 INSTALL_DATA    = @INSTALL_DATA@
68
69 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
70
71 ################################################################################
72 all :   terminfo.tmp
73
74 depend :
75
76 sources :: terminfo.tmp 
77
78 install : install.data install.libs
79
80 install.data :  terminfo.tmp \
81                 $(DESTDIR)$(libdir) \
82                 $(DESTDIR)$(datadir) \
83                 $(DESTDIR)$(tabsetdir)
84         DESTDIR=${DESTDIR} \
85         prefix=${prefix} \
86         exec_prefix=${exec_prefix} \
87         bindir=${bindir} \
88         top_srcdir=${top_srcdir} \
89         srcdir=${srcdir} \
90         datadir=${datadir} \
91         ticdir=${ticdir} \
92         source=terminfo.tmp \
93         cross_compiling=@cross_compiling@ \
94         $(SHELL) ./run_tic.sh
95         @cd $(srcdir)/tabset && \
96                 $(SHELL) -c 'for i in * ; do \
97                         if test -f $$i ; then \
98                         echo installing $$i; \
99                         $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
100                         fi; done'
101
102 NCURSES_CONFIG  = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config
103
104 install.libs :: $(DESTDIR)$(bindir) ncurses-config
105         $(INSTALL_PROG) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
106
107 @MAKE_PC_FILES@install.libs :: pc-files $(DESTDIR)$(PKG_CONFIG_LIBDIR)
108 @MAKE_PC_FILES@ $(SHELL) -c 'for name in *.pc; do $(INSTALL_DATA) $$name $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done'
109
110 @MAKE_PC_FILES@sources :: pc-files
111 @MAKE_PC_FILES@pc-files :
112 @MAKE_PC_FILES@ $(SHELL) ./gen-pkgconfig
113 @MAKE_PC_FILES@ touch $@
114
115 terminfo.tmp : run_tic.sed $(source)
116         echo '** adjusting tabset paths'
117         sed -f run_tic.sed $(source) >terminfo.tmp
118
119 run_tic.sed :
120         WHICH_XTERM=@WHICH_XTERM@ \
121         ticdir=${ticdir} \
122         $(SHELL) $(srcdir)/gen_edit.sh >$@
123
124 $(DESTDIR)$(bindir) \
125 $(DESTDIR)$(libdir) \
126 $(DESTDIR)$(datadir) \
127 $(DESTDIR)$(tabsetdir) \
128 $(DESTDIR)$(PKG_CONFIG_LIBDIR) :
129         mkdir -p $@
130
131 uninstall : uninstall.data uninstall.libs
132
133 uninstall.data :
134         -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
135         -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
136         -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
137
138 uninstall.libs :
139         -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
140 @MAKE_PC_FILES@ $(SHELL) 'for name in *.pc; do rm -f $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done'
141
142 tags :
143
144 @MAKE_UPPER_TAGS@TAGS :
145
146 mostlyclean :
147         -rm -f terminfo.tmp
148         -rm -f run_tic.sed
149 @MAKE_PC_FILES@ -rm -f *.pc pc-files
150         -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
151
152 clean :: mostlyclean
153
154 distclean : clean
155 @MAKE_PC_FILES@ -rm -f gen-pkgconfig
156         -rm -f Makefile run_tic.sh ncurses-config
157
158 realclean : distclean
159
160 ###############################################################################
161 # The remainder of this file is automatically generated during configuration
162 ###############################################################################