1# $Id: Makefile.in,v 1.43 2007/03/31 15:54:17 tom Exp $ 2############################################################################## 3# Copyright (c) 1998-2006,2007 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 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@ 65ticfile = $(ticdir).db 66source = @TERMINFO_SRC@ 67 68INSTALL = @INSTALL@ 69INSTALL_PROG = @INSTALL_PROGRAM@ 70INSTALL_DATA = @INSTALL_DATA@ 71 72################################################################################ 73all : terminfo.tmp 74 75depend : 76 77sources : 78 79install : install.data install.libs 80 81install.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 THIS_CC="$(CC)" \ 95 THAT_CC="$(HOSTCC)" \ 96 $(SHELL) ./run_tic.sh 97 @cd $(srcdir)/tabset && \ 98 $(SHELL) -c 'for i in * ; do \ 99 if test -f $$i ; then \ 100 echo installing $$i; \ 101 $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \ 102 fi; done' 103 104NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config 105 106install.libs : $(DESTDIR)$(bindir) ncurses-config 107 $(INSTALL_PROG) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG) 108 109terminfo.tmp : run_tic.sed $(source) 110 echo '** adjusting tabset paths' 111 sed -f run_tic.sed $(source) >terminfo.tmp 112 113run_tic.sed : 114 WHICH_XTERM=@WHICH_XTERM@ \ 115 ticdir=${ticdir} \ 116 $(SHELL) $(srcdir)/gen_edit.sh >$@ 117 118$(DESTDIR)$(bindir) \ 119$(DESTDIR)$(libdir) \ 120$(DESTDIR)$(datadir) \ 121$(DESTDIR)$(tabsetdir) : 122 $(SHELL) $(top_srcdir)/mkdirs.sh $@ 123 124uninstall : uninstall.data uninstall.libs 125 126uninstall.data : 127 -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir) 128 -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir) 129 -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile) 130 131uninstall.libs : 132 -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG) 133 134tags : 135 136@MAKE_UPPER_TAGS@TAGS : 137 138mostlyclean : 139 -rm -f terminfo.tmp 140 -rm -f run_tic.sed 141 -rm -f core tags TAGS *~ *.bak *.ln *.atac trace 142 143clean :: mostlyclean 144 145distclean : clean 146 -rm -f Makefile run_tic.sh ncurses-config 147 148realclean : distclean 149 150############################################################################### 151# The remainder of this file is automatically generated during configuration 152############################################################################### 153