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