Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.63 2015/08/05 23:15:41 tom Exp $ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 2 | ############################################################################## |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 3 | # Copyright (c) 1998-2014,2015 Free Software Foundation, Inc. # |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 45 | SHELL = @SHELL@ |
| 46 | VPATH = @srcdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 47 | THIS = Makefile |
| 48 | |
| 49 | CF_MFLAGS = @cf_cv_makeflags@ |
| 50 | @SET_MAKE@ |
| 51 | |
| 52 | DESTDIR = @DESTDIR@ |
| 53 | top_srcdir = @top_srcdir@ |
| 54 | srcdir = @srcdir@ |
| 55 | prefix = @prefix@ |
| 56 | exec_prefix = @exec_prefix@ |
| 57 | bindir = @bindir@ |
| 58 | libdir = @libdir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 59 | datarootdir = @datarootdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 60 | datadir = @datadir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 61 | includesubdir = @includesubdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 62 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 63 | INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 64 | |
| 65 | tabsetdir = $(datadir)/tabset |
| 66 | ticdir = @TERMINFO@ |
| 67 | ticfile = $(ticdir).db |
| 68 | source = @TERMINFO_SRC@ |
| 69 | |
| 70 | INSTALL = @INSTALL@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 73 | INSTALL_DATA = @INSTALL_DATA@ |
| 74 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 75 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ |
| 76 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 77 | ################################################################################ |
| 78 | all : terminfo.tmp |
| 79 | |
| 80 | depend : |
| 81 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 82 | sources :: terminfo.tmp |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 83 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 84 | install : @MISC_INSTALL_DATA@ install.libs |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 85 | |
| 86 | install.data : terminfo.tmp \ |
| 87 | $(DESTDIR)$(libdir) \ |
| 88 | $(DESTDIR)$(datadir) \ |
| 89 | $(DESTDIR)$(tabsetdir) |
| 90 | DESTDIR=${DESTDIR} \ |
| 91 | prefix=${prefix} \ |
| 92 | exec_prefix=${exec_prefix} \ |
| 93 | bindir=${bindir} \ |
| 94 | top_srcdir=${top_srcdir} \ |
| 95 | srcdir=${srcdir} \ |
| 96 | datadir=${datadir} \ |
| 97 | ticdir=${ticdir} \ |
| 98 | source=terminfo.tmp \ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 99 | cross_compiling=@cross_compiling@ \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 100 | $(SHELL) ./run_tic.sh |
| 101 | @cd $(srcdir)/tabset && \ |
| 102 | $(SHELL) -c 'for i in * ; do \ |
| 103 | if test -f $$i ; then \ |
| 104 | echo installing $$i; \ |
| 105 | $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \ |
| 106 | fi; done' |
| 107 | |
| 108 | NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config |
| 109 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 110 | install.libs :: $(DESTDIR)$(bindir) ncurses-config |
| 111 | $(INSTALL_SCRIPT) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG) |
| 112 | |
| 113 | @MAKE_PC_FILES@install.libs :: pc-files $(DESTDIR)$(PKG_CONFIG_LIBDIR) |
| 114 | @MAKE_PC_FILES@ $(SHELL) -c 'for name in *.pc; do $(INSTALL_DATA) $$name $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done' |
| 115 | |
| 116 | @MAKE_PC_FILES@sources :: pc-files |
| 117 | @MAKE_PC_FILES@pc-files : |
| 118 | @MAKE_PC_FILES@ $(SHELL) ./gen-pkgconfig |
| 119 | @MAKE_PC_FILES@ touch $@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 120 | |
| 121 | terminfo.tmp : run_tic.sed $(source) |
| 122 | echo '** adjusting tabset paths' |
| 123 | sed -f run_tic.sed $(source) >terminfo.tmp |
| 124 | |
| 125 | run_tic.sed : |
| 126 | WHICH_XTERM=@WHICH_XTERM@ \ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 127 | XTERM_KBS=@XTERM_KBS@ \ |
| 128 | datadir=${datadir} \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 129 | $(SHELL) $(srcdir)/gen_edit.sh >$@ |
| 130 | |
| 131 | $(DESTDIR)$(bindir) \ |
| 132 | $(DESTDIR)$(libdir) \ |
| 133 | $(DESTDIR)$(datadir) \ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 134 | $(DESTDIR)$(tabsetdir) \ |
| 135 | $(DESTDIR)$(PKG_CONFIG_LIBDIR) : |
| 136 | mkdir -p $@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 137 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 138 | uninstall : @MISC_UNINSTALL_DATA@ uninstall.libs |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 139 | |
| 140 | uninstall.data : |
| 141 | -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir) |
| 142 | -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir) |
| 143 | -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile) |
| 144 | |
| 145 | uninstall.libs : |
| 146 | -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG) |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 147 | @MAKE_PC_FILES@ $(SHELL) -c 'for name in *.pc; do rm -f $(DESTDIR)$(PKG_CONFIG_LIBDIR)/$$name; done' |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 148 | |
| 149 | tags : |
| 150 | |
| 151 | @MAKE_UPPER_TAGS@TAGS : |
| 152 | |
| 153 | mostlyclean : |
| 154 | -rm -f terminfo.tmp |
| 155 | -rm -f run_tic.sed |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 156 | @MAKE_PC_FILES@ -rm -f *.pc pc-files |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 157 | -rm -f core tags TAGS *~ *.bak *.ln *.atac trace |
| 158 | |
| 159 | clean :: mostlyclean |
| 160 | |
| 161 | distclean : clean |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 162 | @MAKE_PC_FILES@ -rm -f gen-pkgconfig |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 163 | -rm -f Makefile run_tic.sh ncurses-config |
| 164 | |
| 165 | realclean : distclean |
| 166 | |
| 167 | ############################################################################### |
| 168 | # The remainder of this file is automatically generated during configuration |
| 169 | ############################################################################### |