Makefile.in 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. # $Id: Makefile.in,v 1.44 2008/12/13 18:48:47 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998-2007,2008 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. # turn off _all_ suffix rules; we'll generate our own
  42. .SUFFIXES :
  43. SHELL = /bin/sh
  44. THIS = Makefile
  45. CF_MFLAGS = @cf_cv_makeflags@
  46. @SET_MAKE@
  47. DESTDIR = @DESTDIR@
  48. top_srcdir = @top_srcdir@
  49. srcdir = @srcdir@
  50. prefix = @prefix@
  51. exec_prefix = @exec_prefix@
  52. bindir = @bindir@
  53. libdir = @libdir@
  54. datadir = @datadir@
  55. CC = @CC@
  56. HOSTCC = @BUILD_CC@
  57. tabsetdir = $(datadir)/tabset
  58. ticdir = @TERMINFO@
  59. ticfile = $(ticdir).db
  60. source = @TERMINFO_SRC@
  61. INSTALL = @INSTALL@
  62. INSTALL_PROG = @INSTALL_SCRIPT@
  63. INSTALL_DATA = @INSTALL_DATA@
  64. ################################################################################
  65. all : terminfo.tmp
  66. depend :
  67. sources :
  68. install : install.data install.libs
  69. install.data : terminfo.tmp \
  70. $(DESTDIR)$(libdir) \
  71. $(DESTDIR)$(datadir) \
  72. $(DESTDIR)$(tabsetdir)
  73. DESTDIR=${DESTDIR} \
  74. prefix=${prefix} \
  75. exec_prefix=${exec_prefix} \
  76. bindir=${bindir} \
  77. top_srcdir=${top_srcdir} \
  78. srcdir=${srcdir} \
  79. datadir=${datadir} \
  80. ticdir=${ticdir} \
  81. source=terminfo.tmp \
  82. THIS_CC="$(CC)" \
  83. THAT_CC="$(HOSTCC)" \
  84. $(SHELL) ./run_tic.sh
  85. @cd $(srcdir)/tabset && \
  86. $(SHELL) -c 'for i in * ; do \
  87. if test -f $$i ; then \
  88. echo installing $$i; \
  89. $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
  90. fi; done'
  91. NCURSES_CONFIG = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config
  92. install.libs : $(DESTDIR)$(bindir) ncurses-config
  93. $(INSTALL_PROG) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
  94. terminfo.tmp : run_tic.sed $(source)
  95. echo '** adjusting tabset paths'
  96. sed -f run_tic.sed $(source) >terminfo.tmp
  97. run_tic.sed :
  98. WHICH_XTERM=@WHICH_XTERM@ \
  99. ticdir=${ticdir} \
  100. $(SHELL) $(srcdir)/gen_edit.sh >$@
  101. $(DESTDIR)$(bindir) \
  102. $(DESTDIR)$(libdir) \
  103. $(DESTDIR)$(datadir) \
  104. $(DESTDIR)$(tabsetdir) :
  105. $(SHELL) $(top_srcdir)/mkdirs.sh $@
  106. uninstall : uninstall.data uninstall.libs
  107. uninstall.data :
  108. -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
  109. -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
  110. -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
  111. uninstall.libs :
  112. -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
  113. tags :
  114. @MAKE_UPPER_TAGS@TAGS :
  115. mostlyclean :
  116. -rm -f terminfo.tmp
  117. -rm -f run_tic.sed
  118. -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
  119. clean :: mostlyclean
  120. distclean : clean
  121. -rm -f Makefile run_tic.sh ncurses-config
  122. realclean : distclean
  123. ###############################################################################
  124. # The remainder of this file is automatically generated during configuration
  125. ###############################################################################