micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.54 2022/10/22 16:36:40 tom Exp $ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 2 | ############################################################################## |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 3 | # Copyright 2019-2021,2022 Thomas E. Dickey # |
| 4 | # Copyright 1998-2013,2015 Free Software Foundation, Inc. # |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 38 | SHELL = @SHELL@ |
| 39 | VPATH = @srcdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 40 | |
| 41 | DESTDIR = @DESTDIR@ |
| 42 | srcdir = @srcdir@ |
| 43 | prefix = @prefix@ |
| 44 | exec_prefix = @exec_prefix@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 45 | datarootdir = @datarootdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 46 | datadir = @datadir@ |
| 47 | mandir = @mandir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 48 | includesubdir = @includesubdir@ |
| 49 | |
| 50 | INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 51 | |
| 52 | INSTALL = @INSTALL@ |
| 53 | INSTALL_DATA = @INSTALL_DATA@ |
| 54 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 55 | ################################################################################ |
| 56 | |
| 57 | @MAKE_PHONY@.PHONY : all |
| 58 | @MAKE_PHONY@.PHONY : clean |
| 59 | @MAKE_PHONY@.PHONY : depend |
| 60 | @MAKE_PHONY@.PHONY : distclean |
| 61 | @MAKE_PHONY@.PHONY : install |
| 62 | @MAKE_PHONY@.PHONY : install.man |
| 63 | @MAKE_PHONY@.PHONY : libs |
| 64 | @MAKE_PHONY@.PHONY : mostlyclean |
| 65 | @MAKE_PHONY@.PHONY : realclean |
| 66 | @MAKE_PHONY@.PHONY : sources |
| 67 | @MAKE_PHONY@.PHONY : uninstall |
| 68 | @MAKE_PHONY@.PHONY : uninstall.man |
| 69 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 70 | all \ |
| 71 | sources : terminfo.5 |
| 72 | depend : |
| 73 | tags : |
| 74 | |
| 75 | $(DESTDIR)$(mandir) : |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 76 | mkdir -p $@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 77 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 78 | EDITARGS = $(DESTDIR)$(mandir) $(srcdir) terminfo.5 *-config.1 $(srcdir)/*.[0-9]* |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 79 | |
| 80 | install install.man : terminfo.5 $(DESTDIR)$(mandir) |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 81 | $(SHELL) ../edit_man.sh normal installing $(EDITARGS) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 82 | |
| 83 | uninstall uninstall.man : |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 84 | -$(SHELL) ../edit_man.sh normal removing $(EDITARGS) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 85 | |
| 86 | # We compose terminfo.5 from the real sources... |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 87 | CAPLIST = \ |
| 88 | $(srcdir)/../include/@TERMINFO_CAPS@ \ |
| 89 | $(srcdir)/../include/Caps-ncurses |
| 90 | terminfo.5: $(srcdir)/terminfo.head \ |
| 91 | $(CAPLIST) \ |
| 92 | $(srcdir)/terminfo.tail \ |
| 93 | Makefile $(srcdir)/MKterminfo.sh |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 94 | $(SHELL) $(srcdir)/MKterminfo.sh $(srcdir)/terminfo.head $(CAPLIST) $(srcdir)/terminfo.tail >terminfo.5 |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 95 | |
| 96 | mostlyclean : |
| 97 | -rm -f core tags TAGS *~ *.bak *.ln *.atac trace |
| 98 | |
| 99 | clean: mostlyclean |
| 100 | rm -f terminfo.5 |
| 101 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 102 | ../edit_man.sed : make_sed.sh |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 103 | $(SHELL) $(srcdir)/make_sed.sh @MANPAGE_RENAMES@ >../edit_man.sed |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 104 | |
| 105 | distclean realclean: clean |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 106 | -rm -f Makefile *-config.1 ../edit_man.* ../man_alias.* man_db.renames |