]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/Makefile.in
ncurses 5.5
[ncurses.git] / misc / Makefile.in
index 4ea04461e7f13bec4f8d75940edbafa146b93205..8712edb48038e68e912810423eef2c6de83408eb 100644 (file)
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.29 2000/09/30 20:01:10 tom Exp $
+# $Id: Makefile.in,v 1.36 2004/07/11 16:00:13 tom Exp $
 ##############################################################################
-# Copyright (c) 1998,2000 Free Software Foundation, Inc.                     #
+# Copyright (c) 1998,2000,2001,2002 Free Software Foundation, Inc.           #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -40,7 +40,7 @@
 # and the programs with the configured default model.
 
 # turn off _all_ suffix rules; we'll generate our own
-.SUFFIXES:
+.SUFFIXES :
 
 SHELL          = /bin/sh
 THIS           = Makefile
@@ -57,6 +57,9 @@ bindir                = @bindir@
 libdir         = @libdir@
 datadir                = @datadir@
 
+CC             = @CC@
+HOSTCC         = @BUILD_CC@
+
 tabsetdir      = $(datadir)/tabset
 ticdir         = @TERMINFO@
 source         = @TERMINFO_SRC@
@@ -65,13 +68,16 @@ INSTALL             = @INSTALL@
 INSTALL_DATA   = @INSTALL_DATA@
 
 ################################################################################
-all:
+all :  terminfo.tmp
+
+depend :
 
-sources:
+sources :
 
-install: install.data
+install : install.data
 
-install.data : $(DESTDIR)$(libdir) \
+install.data : terminfo.tmp \
+               $(DESTDIR)$(libdir) \
                $(DESTDIR)$(ticdir) \
                $(DESTDIR)$(tabsetdir)
        DESTDIR=${DESTDIR} \
@@ -82,39 +88,52 @@ install.data :      $(DESTDIR)$(libdir) \
        srcdir=${srcdir} \
        datadir=${datadir} \
        ticdir=${ticdir} \
-       source=${source} \
-       $(SHELL) ./run_tic.sh
+       source=terminfo.tmp \
+       THIS_CC="$(CC)" \
+       THAT_CC="$(HOSTCC)" \
+       sh ./run_tic.sh
        @cd $(srcdir)/tabset && \
-               $(SHELL) -c 'for i in * ; do \
+               sh -c 'for i in * ; do \
                        if test -f $$i ; then \
                        echo installing $$i; \
                        $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
                        fi; done'
 
+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} \
+       sh $(srcdir)/gen_edit.sh >$@
+
 $(DESTDIR)$(libdir) \
 $(DESTDIR)$(tabsetdir) \
 $(DESTDIR)$(ticdir) :
-       $(srcdir)/../mkinstalldirs $@
+       sh $(top_srcdir)/mkinstalldirs $@
 
-uninstall: uninstall.data
+uninstall : uninstall.data
 
-uninstall.data:
+uninstall.data :
        -cd $(DESTDIR)$(ticdir) && rm -rf *
        -cd $(DESTDIR)$(tabsetdir) && rm -rf *
 
-tags:
+tags :
 
-@MAKE_UPPER_TAGS@TAGS:
+@MAKE_UPPER_TAGS@TAGS :
 
-mostlyclean:
-       -rm -f core tags TAGS *~ *.ln *.atac trace
+mostlyclean :
+       -rm -f terminfo.tmp
+       -rm -f run_tic.sed
+       -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
 
 clean :: mostlyclean
 
-distclean: clean
+distclean : clean
        -rm -f Makefile run_tic.sh
 
-realclean: distclean
+realclean : distclean
 
 ###############################################################################
 # The remainder of this file is automatically generated during configuration