2006-12-24 10:11:39 +08:00
|
|
|
# $Id: Makefile.in,v 1.42 2006/12/31 00:11:06 tom Exp $
|
1998-03-01 12:21:12 +08:00
|
|
|
##############################################################################
|
2006-12-18 12:32:42 +08:00
|
|
|
# Copyright (c) 1998-2004,2006 Free Software Foundation, Inc. #
|
1998-03-01 12:21:12 +08:00
|
|
|
# #
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a #
|
|
|
|
# copy of this software and associated documentation files (the "Software"), #
|
|
|
|
# to deal in the Software without restriction, including without limitation #
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, distribute #
|
|
|
|
# with modifications, sublicense, and/or sell copies of the Software, and to #
|
|
|
|
# permit persons to whom the Software is furnished to do so, subject to the #
|
|
|
|
# following conditions: #
|
|
|
|
# #
|
|
|
|
# The above copyright notice and this permission notice shall be included in #
|
|
|
|
# all copies or substantial portions of the Software. #
|
|
|
|
# #
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
|
|
|
|
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
|
|
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
|
|
|
|
# DEALINGS IN THE SOFTWARE. #
|
|
|
|
# #
|
|
|
|
# Except as contained in this notice, the name(s) of the above copyright #
|
|
|
|
# holders shall not be used in advertising or otherwise to promote the sale, #
|
|
|
|
# use or other dealings in this Software without prior written #
|
|
|
|
# authorization. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
2006-12-18 12:32:42 +08:00
|
|
|
# Author: Thomas E. Dickey 1996-on
|
1998-03-01 12:21:12 +08:00
|
|
|
#
|
1997-05-15 12:00:00 +08:00
|
|
|
# Makefile for ncurses miscellany directory
|
|
|
|
#
|
|
|
|
# This makes/installs the terminfo database
|
|
|
|
#
|
|
|
|
# The variable 'srcdir' refers to the source-distribution, and can be set with
|
|
|
|
# the configure script by "--srcdir=DIR".
|
|
|
|
#
|
|
|
|
# The rules are organized to produce the libraries for the configured models,
|
|
|
|
# and the programs with the configured default model.
|
|
|
|
|
|
|
|
# turn off _all_ suffix rules; we'll generate our own
|
2002-10-13 11:35:53 +08:00
|
|
|
.SUFFIXES :
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
THIS = Makefile
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
CF_MFLAGS = @cf_cv_makeflags@
|
1997-05-15 12:00:00 +08:00
|
|
|
@SET_MAKE@
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
DESTDIR = @DESTDIR@
|
|
|
|
top_srcdir = @top_srcdir@
|
1997-05-15 12:00:00 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
CC = @CC@
|
|
|
|
HOSTCC = @BUILD_CC@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
tabsetdir = $(datadir)/tabset
|
2000-10-21 12:42:11 +08:00
|
|
|
ticdir = @TERMINFO@
|
2006-12-18 12:32:42 +08:00
|
|
|
ticfile = $(ticdir).db
|
2000-10-21 12:42:11 +08:00
|
|
|
source = @TERMINFO_SRC@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
2006-12-18 12:32:42 +08:00
|
|
|
INSTALL_PROG = @INSTALL_PROGRAM@
|
1997-05-15 12:00:00 +08:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
################################################################################
|
2005-10-10 02:41:57 +08:00
|
|
|
all : terminfo.tmp
|
2002-10-13 11:35:53 +08:00
|
|
|
|
|
|
|
depend :
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
sources :
|
1998-03-01 12:21:12 +08:00
|
|
|
|
2006-12-24 10:11:39 +08:00
|
|
|
install : install.data install.libs
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
install.data : terminfo.tmp \
|
|
|
|
$(DESTDIR)$(libdir) \
|
2006-12-18 12:32:42 +08:00
|
|
|
$(DESTDIR)$(datadir) \
|
2000-10-21 12:42:11 +08:00
|
|
|
$(DESTDIR)$(tabsetdir)
|
|
|
|
DESTDIR=${DESTDIR} \
|
|
|
|
prefix=${prefix} \
|
|
|
|
exec_prefix=${exec_prefix} \
|
|
|
|
bindir=${bindir} \
|
|
|
|
top_srcdir=${top_srcdir} \
|
|
|
|
srcdir=${srcdir} \
|
|
|
|
datadir=${datadir} \
|
|
|
|
ticdir=${ticdir} \
|
2005-10-10 02:41:57 +08:00
|
|
|
source=terminfo.tmp \
|
2002-10-13 11:35:53 +08:00
|
|
|
THIS_CC="$(CC)" \
|
|
|
|
THAT_CC="$(HOSTCC)" \
|
2006-12-18 12:32:42 +08:00
|
|
|
$(SHELL) ./run_tic.sh
|
1997-05-15 12:00:00 +08:00
|
|
|
@cd $(srcdir)/tabset && \
|
2006-12-18 12:32:42 +08:00
|
|
|
$(SHELL) -c 'for i in * ; do \
|
2000-10-21 12:42:11 +08:00
|
|
|
if test -f $$i ; then \
|
|
|
|
echo installing $$i; \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
|
|
|
|
fi; done'
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config
|
|
|
|
|
2006-12-24 10:11:39 +08:00
|
|
|
install.libs : $(DESTDIR)$(bindir) ncurses-config
|
2006-12-18 12:32:42 +08:00
|
|
|
$(INSTALL_PROG) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
|
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
terminfo.tmp : run_tic.sed $(source)
|
|
|
|
echo '** adjusting tabset paths'
|
|
|
|
sed -f run_tic.sed $(source) >terminfo.tmp
|
|
|
|
|
|
|
|
run_tic.sed :
|
|
|
|
WHICH_XTERM=@WHICH_XTERM@ \
|
|
|
|
ticdir=${ticdir} \
|
2006-12-18 12:32:42 +08:00
|
|
|
$(SHELL) $(srcdir)/gen_edit.sh >$@
|
2005-10-10 02:41:57 +08:00
|
|
|
|
2006-12-24 10:11:39 +08:00
|
|
|
$(DESTDIR)$(bindir) \
|
2000-10-21 12:42:11 +08:00
|
|
|
$(DESTDIR)$(libdir) \
|
2006-12-18 12:32:42 +08:00
|
|
|
$(DESTDIR)$(datadir) \
|
|
|
|
$(DESTDIR)$(tabsetdir) :
|
|
|
|
$(SHELL) $(top_srcdir)/mkinstalldirs $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2006-12-24 10:11:39 +08:00
|
|
|
uninstall : uninstall.data uninstall.libs
|
1998-03-01 12:21:12 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
uninstall.data :
|
2006-12-18 12:32:42 +08:00
|
|
|
-test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
|
|
|
|
-test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
|
|
|
|
-test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
|
|
|
|
|
2006-12-24 10:11:39 +08:00
|
|
|
uninstall.libs :
|
2006-12-18 12:32:42 +08:00
|
|
|
-rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
|
1998-03-01 12:21:12 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
tags :
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
@MAKE_UPPER_TAGS@TAGS :
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
mostlyclean :
|
2005-10-10 02:41:57 +08:00
|
|
|
-rm -f terminfo.tmp
|
|
|
|
-rm -f run_tic.sed
|
2002-10-13 11:35:53 +08:00
|
|
|
-rm -f core tags TAGS *~ *.bak *.ln *.atac trace
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
clean :: mostlyclean
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
distclean : clean
|
2006-12-18 12:32:42 +08:00
|
|
|
-rm -f Makefile run_tic.sh ncurses-config
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
realclean : distclean
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# The remainder of this file is automatically generated during configuration
|
|
|
|
###############################################################################
|