| 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 |  | 
|---|
| 45 | SHELL           = /bin/sh | 
|---|
| 46 | THIS            = Makefile | 
|---|
| 47 |  | 
|---|
| 48 | CF_MFLAGS       = @cf_cv_makeflags@ | 
|---|
| 49 | @SET_MAKE@ | 
|---|
| 50 |  | 
|---|
| 51 | DESTDIR         = @DESTDIR@ | 
|---|
| 52 | top_srcdir      = @top_srcdir@ | 
|---|
| 53 | srcdir          = @srcdir@ | 
|---|
| 54 | prefix          = @prefix@ | 
|---|
| 55 | exec_prefix     = @exec_prefix@ | 
|---|
| 56 | bindir          = @bindir@ | 
|---|
| 57 | libdir          = @libdir@ | 
|---|
| 58 | datadir         = @datadir@ | 
|---|
| 59 |  | 
|---|
| 60 | CC              = @CC@ | 
|---|
| 61 | HOSTCC          = @BUILD_CC@ | 
|---|
| 62 |  | 
|---|
| 63 | tabsetdir       = $(datadir)/tabset | 
|---|
| 64 | #ticdir         = @TERMINFO@ - bird | 
|---|
| 65 | ticdir          = $(datadir)/terminfo | 
|---|
| 66 | source          = @TERMINFO_SRC@ | 
|---|
| 67 |  | 
|---|
| 68 | INSTALL         = @INSTALL@ | 
|---|
| 69 | INSTALL_DATA    = @INSTALL_DATA@ | 
|---|
| 70 |  | 
|---|
| 71 | ################################################################################ | 
|---|
| 72 | all :   terminfo.tmp | 
|---|
| 73 |  | 
|---|
| 74 | depend : | 
|---|
| 75 |  | 
|---|
| 76 | sources : | 
|---|
| 77 |  | 
|---|
| 78 | install : install.data | 
|---|
| 79 |  | 
|---|
| 80 | install.data :  terminfo.tmp \ | 
|---|
| 81 | $(DESTDIR)$(libdir) \ | 
|---|
| 82 | $(DESTDIR)$(ticdir) \ | 
|---|
| 83 | $(DESTDIR)$(tabsetdir) | 
|---|
| 84 | DESTDIR=${DESTDIR} \ | 
|---|
| 85 | prefix=${prefix} \ | 
|---|
| 86 | exec_prefix=${exec_prefix} \ | 
|---|
| 87 | bindir=${bindir} \ | 
|---|
| 88 | top_srcdir=${top_srcdir} \ | 
|---|
| 89 | srcdir=${srcdir} \ | 
|---|
| 90 | datadir=${datadir} \ | 
|---|
| 91 | ticdir=${ticdir} \ | 
|---|
| 92 | source=terminfo.tmp \ | 
|---|
| 93 | THIS_CC="$(CC)" \ | 
|---|
| 94 | THAT_CC="$(HOSTCC)" \ | 
|---|
| 95 | sh ./run_tic.sh | 
|---|
| 96 | @cd $(srcdir)/tabset && \ | 
|---|
| 97 | sh -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 | terminfo.tmp : run_tic.sed $(source) | 
|---|
| 104 | echo '** adjusting tabset paths' | 
|---|
| 105 | sed -f run_tic.sed $(source) >terminfo.tmp | 
|---|
| 106 |  | 
|---|
| 107 | run_tic.sed : | 
|---|
| 108 | WHICH_XTERM=@WHICH_XTERM@ \ | 
|---|
| 109 | ticdir=${ticdir} \ | 
|---|
| 110 | sh $(srcdir)/gen_edit.sh >$@ | 
|---|
| 111 |  | 
|---|
| 112 | $(DESTDIR)$(libdir) \ | 
|---|
| 113 | $(DESTDIR)$(tabsetdir) \ | 
|---|
| 114 | $(DESTDIR)$(ticdir) : | 
|---|
| 115 | sh $(top_srcdir)/mkinstalldirs $@ | 
|---|
| 116 |  | 
|---|
| 117 | uninstall : uninstall.data | 
|---|
| 118 |  | 
|---|
| 119 | uninstall.data : | 
|---|
| 120 | -cd $(DESTDIR)$(ticdir) && rm -rf * | 
|---|
| 121 | -cd $(DESTDIR)$(tabsetdir) && rm -rf * | 
|---|
| 122 |  | 
|---|
| 123 | tags : | 
|---|
| 124 |  | 
|---|
| 125 | @MAKE_UPPER_TAGS@TAGS : | 
|---|
| 126 |  | 
|---|
| 127 | mostlyclean : | 
|---|
| 128 | -rm -f terminfo.tmp | 
|---|
| 129 | -rm -f run_tic.sed | 
|---|
| 130 | -rm -f core tags TAGS *~ *.bak *.ln *.atac trace | 
|---|
| 131 |  | 
|---|
| 132 | clean :: mostlyclean | 
|---|
| 133 |  | 
|---|
| 134 | distclean : clean | 
|---|
| 135 | -rm -f Makefile run_tic.sh | 
|---|
| 136 |  | 
|---|
| 137 | realclean : distclean | 
|---|
| 138 |  | 
|---|
| 139 | ############################################################################### | 
|---|
| 140 | # The remainder of this file is automatically generated during configuration | 
|---|
| 141 | ############################################################################### | 
|---|