micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.9 2021/07/03 15:45:33 tom Exp $ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 2 | ############################################################################## |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 3 | # Copyright 2019-2020,2021 Thomas E. Dickey # |
| 4 | # Copyright 2011-2015,2018 Free Software Foundation, Inc. # |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [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 |
| 32 | # |
| 33 | # Makefile for AdaCurses manual pages. |
| 34 | |
| 35 | SHELL = @SHELL@ |
| 36 | VPATH = @srcdir@ |
| 37 | |
| 38 | DESTDIR = @DESTDIR@ |
| 39 | srcdir = @srcdir@ |
| 40 | prefix = @prefix@ |
| 41 | exec_prefix = @exec_prefix@ |
| 42 | datarootdir = @datarootdir@ |
| 43 | datadir = @datadir@ |
| 44 | mandir = @mandir@ |
| 45 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 46 | INSTALL = @INSTALL@ @INSTALL_OPT_O@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 47 | INSTALL_DATA = @INSTALL_DATA@ |
| 48 | |
| 49 | DFT_ARG_SUFFIX = @DFT_ARG_SUFFIX@ |
| 50 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 51 | THIS = @ADA_LIBNAME@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 52 | DOCDIR = $(DESTDIR)$(datadir)/doc/$(THIS) |
| 53 | MANDIR = $(DESTDIR)$(mandir)/man1 |
| 54 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 55 | ################################################################################ |
| 56 | |
| 57 | @MAKE_PHONY@.PHONY : all |
| 58 | @MAKE_PHONY@.PHONY : check |
| 59 | @MAKE_PHONY@.PHONY : clean |
| 60 | @MAKE_PHONY@.PHONY : distclean |
| 61 | @MAKE_PHONY@.PHONY : install |
| 62 | @MAKE_PHONY@.PHONY : install.html |
| 63 | @MAKE_PHONY@.PHONY : install.man |
| 64 | @MAKE_PHONY@.PHONY : libs |
| 65 | @MAKE_PHONY@.PHONY : lint |
| 66 | @MAKE_PHONY@.PHONY : mostlyclean |
| 67 | @MAKE_PHONY@.PHONY : realclean |
| 68 | @MAKE_PHONY@.PHONY : sources |
| 69 | @MAKE_PHONY@.PHONY : uninstall |
| 70 | @MAKE_PHONY@.PHONY : uninstall.html |
| 71 | @MAKE_PHONY@.PHONY : uninstall.man |
| 72 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 73 | all \ |
| 74 | sources \ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 75 | tags : |
| 76 | |
| 77 | $(DOCDIR) \ |
| 78 | $(MANDIR) : |
| 79 | mkdir -p $@ |
| 80 | |
| 81 | install install.man : $(MANDIR) |
| 82 | $(INSTALL_DATA) adacurses${DFT_ARG_SUFFIX}-config.1 $(MANDIR) |
| 83 | |
| 84 | uninstall uninstall.man : |
| 85 | -rm -f $(MANDIR)/adacurses${DFT_ARG_SUFFIX}-config.1 |
| 86 | |
| 87 | # HTML documentation is optional, usually in a separate package. |
| 88 | install.html : $(DOCDIR) |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 89 | ( cd $(srcdir) && tar -cf - *.htm* ada | tar -C $(DOCDIR) -xf - ) |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 90 | |
| 91 | uninstall.html : |
| 92 | -rm -rf $(DOCDIR) |
| 93 | |
| 94 | mostlyclean : |
| 95 | -rm -f core tags TAGS *~ *.bak *.ln *.atac trace |
| 96 | |
| 97 | clean: mostlyclean |
| 98 | |
| 99 | distclean realclean: clean |
| 100 | -rm -f Makefile *-config.1 |