source: trunk/ncurses/misc/Makefile.in@ 2622

Last change on this file since 2622 was 2621, checked in by bird, 20 years ago

GNU ncurses 5.5

File size: 4.6 KB
Line 
1# $Id: Makefile.in,v 1.36 2004/07/11 16:00:13 tom Exp $
2##############################################################################
3# Copyright (c) 1998,2000,2001,2002 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 <dickey@clark.net> 1996,1997
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
45SHELL = /bin/sh
46THIS = Makefile
47
48CF_MFLAGS = @cf_cv_makeflags@
49@SET_MAKE@
50
51DESTDIR = @DESTDIR@
52top_srcdir = @top_srcdir@
53srcdir = @srcdir@
54prefix = @prefix@
55exec_prefix = @exec_prefix@
56bindir = @bindir@
57libdir = @libdir@
58datadir = @datadir@
59
60CC = @CC@
61HOSTCC = @BUILD_CC@
62
63tabsetdir = $(datadir)/tabset
64ticdir = @TERMINFO@
65source = @TERMINFO_SRC@
66
67INSTALL = @INSTALL@
68INSTALL_DATA = @INSTALL_DATA@
69
70################################################################################
71all : terminfo.tmp
72
73depend :
74
75sources :
76
77install : install.data
78
79install.data : terminfo.tmp \
80 $(DESTDIR)$(libdir) \
81 $(DESTDIR)$(ticdir) \
82 $(DESTDIR)$(tabsetdir)
83 DESTDIR=${DESTDIR} \
84 prefix=${prefix} \
85 exec_prefix=${exec_prefix} \
86 bindir=${bindir} \
87 top_srcdir=${top_srcdir} \
88 srcdir=${srcdir} \
89 datadir=${datadir} \
90 ticdir=${ticdir} \
91 source=terminfo.tmp \
92 THIS_CC="$(CC)" \
93 THAT_CC="$(HOSTCC)" \
94 sh ./run_tic.sh
95 @cd $(srcdir)/tabset && \
96 sh -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
102terminfo.tmp : run_tic.sed $(source)
103 echo '** adjusting tabset paths'
104 sed -f run_tic.sed $(source) >terminfo.tmp
105
106run_tic.sed :
107 WHICH_XTERM=@WHICH_XTERM@ \
108 ticdir=${ticdir} \
109 sh $(srcdir)/gen_edit.sh >$@
110
111$(DESTDIR)$(libdir) \
112$(DESTDIR)$(tabsetdir) \
113$(DESTDIR)$(ticdir) :
114 sh $(top_srcdir)/mkinstalldirs $@
115
116uninstall : uninstall.data
117
118uninstall.data :
119 -cd $(DESTDIR)$(ticdir) && rm -rf *
120 -cd $(DESTDIR)$(tabsetdir) && rm -rf *
121
122tags :
123
124@MAKE_UPPER_TAGS@TAGS :
125
126mostlyclean :
127 -rm -f terminfo.tmp
128 -rm -f run_tic.sed
129 -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
130
131clean :: mostlyclean
132
133distclean : clean
134 -rm -f Makefile run_tic.sh
135
136realclean : distclean
137
138###############################################################################
139# The remainder of this file is automatically generated during configuration
140###############################################################################
Note: See TracBrowser for help on using the repository browser.