Imported Upstream version 1.22.4
[platform/upstream/groff.git] / src / include / include.am
1 # Automake rules for 'include'
2 #
3 # File position: <groff-source>/src/include/include.am
4 #
5 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
6 #
7 # Latest update: 13 Aug 2015
8 #
9 # 'groff' is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # 'groff' is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program.  If not, see
21 # <http://www.gnu.org/licenses/gpl-2.0.html>.
22 #
23 ########################################################################
24
25 nodist_noinst_HEADERS = defs.h
26 CLEANFILES += defs.h
27 defs.h: config.status
28         @$(SHELL) $(top_srcdir)/gendef.sh defs.h \
29         "PROG_PREFIX=\"$(g)\"" \
30         "DEVICE=\"$(DEVICE)\"" \
31         "INSTALLPATH=\"$(prefix)\"" \
32         "BINPATH=\"$(bindir)\"" \
33         "FONTPATH=\"$(fontpath)\"" \
34         "MACROPATH=\"$(tmacpath)\"" \
35         "INDEX_SUFFIX=\"$(indexext)\"" \
36         "COMMON_WORDS_FILE=\"$(common_words_file)\"" \
37         "DEFAULT_INDEX_DIR=\"$(indexdir)\"" \
38         "DEFAULT_INDEX_NAME=\"$(indexname)\"" \
39         "DEFAULT_INDEX=\"$(indexdir)/$(indexname)\""
40
41 dist-hook: dist_include
42 dist_include:
43         chmod u+w $(distdir)/src/include
44         cp -f $(top_srcdir)/src/include/*.h $(distdir)/src/include
45
46
47 ########################################################################
48 # Editor settings
49 ########################################################################
50 #
51 # Local Variables:
52 # mode: makefile-automake
53 # fill-column: 72
54 # End:
55 # vim: set filetype=automake textwidth=72: