]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/Makefile.in
ncurses 6.2 - patch 20200411
[ncurses.git] / man / Makefile.in
1 # $Id: Makefile.in,v 1.50 2020/02/02 23:34:34 tom Exp $
2 ##############################################################################
3 # Copyright 2019,2020 Thomas E. Dickey                                       #
4 # Copyright 1998-2013,2015 Free Software Foundation, Inc.                    #
5 #                                                                            #
6 # Permission is hereby granted, free of charge, to any person obtaining a    #
7 # copy of this software and associated documentation files (the "Software"), #
8 # to deal in the Software without restriction, including without limitation  #
9 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
10 # with modifications, sublicense, and/or sell copies of the Software, and to #
11 # permit persons to whom the Software is furnished to do so, subject to the  #
12 # following conditions:                                                      #
13 #                                                                            #
14 # The above copyright notice and this permission notice shall be included in #
15 # all copies or substantial portions of the Software.                        #
16 #                                                                            #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
20 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
23 # DEALINGS IN THE SOFTWARE.                                                  #
24 #                                                                            #
25 # Except as contained in this notice, the name(s) of the above copyright     #
26 # holders shall not be used in advertising or otherwise to promote the sale, #
27 # use or other dealings in this Software without prior written               #
28 # authorization.                                                             #
29 ##############################################################################
30 #
31 # Author: Thomas E. Dickey 1996,1997
32 #
33 # Makefile for ncurses manual pages.
34 #
35 # NOTE: When you add or rename a man page, make sure you update both
36 # the top-level MANIFEST and any man/*.renames files!
37
38 SHELL           = @SHELL@
39 VPATH           = @srcdir@
40
41 DESTDIR         = @DESTDIR@
42 srcdir          = @srcdir@
43 prefix          = @prefix@
44 exec_prefix     = @exec_prefix@
45 datarootdir     = @datarootdir@
46 datadir         = @datadir@
47 mandir          = @mandir@
48 includesubdir   = @includesubdir@
49
50 INCLUDEDIR      = $(DESTDIR)$(includedir)$(includesubdir)
51
52 INSTALL         = @INSTALL@
53 INSTALL_DATA    = @INSTALL_DATA@
54
55 all \
56 sources :       terminfo.5
57 depend :
58 tags :
59
60 $(DESTDIR)$(mandir) :
61         mkdir -p $@
62
63 EDITARGS = $(DESTDIR)$(mandir) $(srcdir) terminfo.5 *-config.1 $(srcdir)/*.[0-9]*
64
65 install install.man : terminfo.5 $(DESTDIR)$(mandir)
66         $(SHELL) ../edit_man.sh normal installing $(EDITARGS)
67
68 uninstall uninstall.man :
69         -$(SHELL) ../edit_man.sh normal removing $(EDITARGS)
70
71 # We compose terminfo.5 from the real sources...
72 CAPLIST = \
73         $(srcdir)/../include/@TERMINFO_CAPS@ \
74         $(srcdir)/../include/Caps-ncurses
75 terminfo.5: $(srcdir)/terminfo.head \
76                 $(CAPLIST) \
77                 $(srcdir)/terminfo.tail \
78                 Makefile $(srcdir)/MKterminfo.sh
79         $(SHELL) $(srcdir)/MKterminfo.sh $(srcdir)/terminfo.head $(CAPLIST) $(srcdir)/terminfo.tail >terminfo.5
80
81 mostlyclean :
82         -rm -f core tags TAGS *~ *.bak *.ln *.atac trace
83
84 clean:  mostlyclean
85         rm -f terminfo.5
86
87 ../edit_man.sed : make_sed.sh @MANPAGE_RENAMES@
88         $(SHELL) $(srcdir)/make_sed.sh @MANPAGE_RENAMES@ >../edit_man.sed
89
90 distclean realclean: clean
91         rm -f Makefile *-config.1 ../edit_man.* ../man_alias.*