1# $Id: Makefile.in,v 1.29 2000/09/30 20:01:10 tom Exp $ 2############################################################################## 3# Copyright (c) 1998,2000 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 60tabsetdir = $(datadir)/tabset 61ticdir = @TERMINFO@ 62source = @TERMINFO_SRC@ 63 64INSTALL = @INSTALL@ 65INSTALL_DATA = @INSTALL_DATA@ 66 67################################################################################ 68all: 69 70sources: 71 72install: install.data 73 74install.data : $(DESTDIR)$(libdir) \ 75 $(DESTDIR)$(ticdir) \ 76 $(DESTDIR)$(tabsetdir) 77 DESTDIR=${DESTDIR} \ 78 prefix=${prefix} \ 79 exec_prefix=${exec_prefix} \ 80 bindir=${bindir} \ 81 top_srcdir=${top_srcdir} \ 82 srcdir=${srcdir} \ 83 datadir=${datadir} \ 84 ticdir=${ticdir} \ 85 source=${source} \ 86 $(SHELL) ./run_tic.sh 87 @cd $(srcdir)/tabset && \ 88 $(SHELL) -c 'for i in * ; do \ 89 if test -f $$i ; then \ 90 echo installing $$i; \ 91 $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \ 92 fi; done' 93 94$(DESTDIR)$(libdir) \ 95$(DESTDIR)$(tabsetdir) \ 96$(DESTDIR)$(ticdir) : 97 $(srcdir)/../mkinstalldirs $@ 98 99uninstall: uninstall.data 100 101uninstall.data: 102 -cd $(DESTDIR)$(ticdir) && rm -rf * 103 -cd $(DESTDIR)$(tabsetdir) && rm -rf * 104 105tags: 106 107@MAKE_UPPER_TAGS@TAGS: 108 109mostlyclean: 110 -rm -f core tags TAGS *~ *.ln *.atac trace 111 112clean :: mostlyclean 113 114distclean: clean 115 -rm -f Makefile run_tic.sh 116 117realclean: distclean 118 119############################################################################### 120# The remainder of this file is automatically generated during configuration 121############################################################################### 122