~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to misc/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.in,v 1.36 2004/07/11 16:00:13 tom Exp $
 
1
# $Id: Makefile.in,v 1.40 2006/10/21 13:28:03 tom Exp $
2
2
##############################################################################
3
 
# Copyright (c) 1998,2000,2001,2002 Free Software Foundation, Inc.           #
 
3
# Copyright (c) 1998-2004,2006 Free Software Foundation, Inc.                #
4
4
#                                                                            #
5
5
# Permission is hereby granted, free of charge, to any person obtaining a    #
6
6
# copy of this software and associated documentation files (the "Software"), #
27
27
# authorization.                                                             #
28
28
##############################################################################
29
29
#
30
 
# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
 
30
# Author: Thomas E. Dickey 1996-on
31
31
#
32
32
# Makefile for ncurses miscellany directory
33
33
#
62
62
 
63
63
tabsetdir       = $(datadir)/tabset
64
64
ticdir          = @TERMINFO@
 
65
ticfile         = $(ticdir).db
65
66
source          = @TERMINFO_SRC@
66
67
 
67
68
INSTALL         = @INSTALL@
 
69
INSTALL_PROG    = @INSTALL_PROGRAM@
68
70
INSTALL_DATA    = @INSTALL_DATA@
69
71
 
70
72
################################################################################
74
76
 
75
77
sources :
76
78
 
77
 
install : install.data
 
79
install : install.data install.scripts
78
80
 
79
81
install.data :  terminfo.tmp \
80
82
                $(DESTDIR)$(libdir) \
81
 
                $(DESTDIR)$(ticdir) \
 
83
                $(DESTDIR)$(datadir) \
82
84
                $(DESTDIR)$(tabsetdir)
83
85
        DESTDIR=${DESTDIR} \
84
86
        prefix=${prefix} \
91
93
        source=terminfo.tmp \
92
94
        THIS_CC="$(CC)" \
93
95
        THAT_CC="$(HOSTCC)" \
94
 
        sh ./run_tic.sh
 
96
        $(SHELL) ./run_tic.sh
95
97
        @cd $(srcdir)/tabset && \
96
 
                sh -c 'for i in * ; do \
 
98
                $(SHELL) -c 'for i in * ; do \
97
99
                        if test -f $$i ; then \
98
100
                        echo installing $$i; \
99
101
                        $(INSTALL_DATA) $$i $(DESTDIR)$(tabsetdir)/$$i; \
100
102
                        fi; done'
101
103
 
 
104
NCURSES_CONFIG  = ncurses@DFT_ARG_SUFFIX@@cf_cv_abi_version@-config
 
105
 
 
106
install.scripts :       ncurses-config
 
107
        $(INSTALL_PROG) ncurses-config $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
 
108
 
102
109
terminfo.tmp : run_tic.sed $(source)
103
110
        echo '** adjusting tabset paths'
104
111
        sed -f run_tic.sed $(source) >terminfo.tmp
106
113
run_tic.sed :
107
114
        WHICH_XTERM=@WHICH_XTERM@ \
108
115
        ticdir=${ticdir} \
109
 
        sh $(srcdir)/gen_edit.sh >$@
 
116
        $(SHELL) $(srcdir)/gen_edit.sh >$@
110
117
 
111
118
$(DESTDIR)$(libdir) \
112
 
$(DESTDIR)$(tabsetdir) \
113
 
$(DESTDIR)$(ticdir) :
114
 
        sh $(top_srcdir)/mkinstalldirs $@
 
119
$(DESTDIR)$(datadir) \
 
120
$(DESTDIR)$(tabsetdir) :
 
121
        $(SHELL) $(top_srcdir)/mkinstalldirs $@
115
122
 
116
 
uninstall : uninstall.data
 
123
uninstall : uninstall.data uninstall.scripts
117
124
 
118
125
uninstall.data :
119
 
        -cd $(DESTDIR)$(ticdir) && rm -rf *
120
 
        -cd $(DESTDIR)$(tabsetdir) && rm -rf *
 
126
        -test -d $(DESTDIR)$(tabsetdir) && rm -rf $(DESTDIR)$(tabsetdir)
 
127
        -test -d $(DESTDIR)$(ticdir) && rm -rf $(DESTDIR)$(ticdir)
 
128
        -test -f $(DESTDIR)$(ticfile) && rm -f $(DESTDIR)$(ticfile)
 
129
 
 
130
uninstall.scripts :
 
131
        -rm -f $(DESTDIR)$(bindir)/$(NCURSES_CONFIG)
121
132
 
122
133
tags :
123
134
 
131
142
clean :: mostlyclean
132
143
 
133
144
distclean : clean
134
 
        -rm -f Makefile run_tic.sh
 
145
        -rm -f Makefile run_tic.sh ncurses-config
135
146
 
136
147
realclean : distclean
137
148