9d6b19352286a59b6787af9967c22aeaf5f33cf7
[platform/upstream/groff.git] / Makefile.sub
1 # Copyright (C) 1989-2014 Free Software Foundation, Inc.
2 #      Written by James Clark (jjc@jclark.com)
3 #
4 # This file is part of groff.
5 #
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 # for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 # Makefile.sub
20 #
21 DISTCLEANFILES=\
22   Makefile \
23   config.cache \
24   config.log \
25   config.status \
26   groff.log \
27   groff.sum \
28   src/include/config.h \
29   site.bak \
30   site.exp \
31   stamp-h \
32   test-groff
33
34 MOSTLYCLEANADD=\
35   Makefile.cfg \
36   conftest*
37
38 M4MACROS=\
39   $(srcdir)/m4/ax_compare_version.m4 \
40   $(srcdir)/m4/ax_prog_perl_version.m4 \
41   $(srcdir)/m4/codeset.m4 \
42   $(srcdir)/m4/fcntl-o.m4 \
43   $(srcdir)/m4/glibc21.m4 \
44   $(srcdir)/m4/groff.m4 \
45   $(srcdir)/m4/iconv.m4 \
46   $(srcdir)/m4/lib-ld.m4 \
47   $(srcdir)/m4/lib-link.m4 \
48   $(srcdir)/m4/lib-prefix.m4 \
49   $(srcdir)/m4/localcharset.m4
50
51 distfiles: configure
52
53 $(srcdir)/configure: configure.ac $(srcdir)/aclocal.m4
54         cd $(srcdir) && autoconf && rm -rf autom4te.cache
55
56 $(srcdir)/aclocal.m4: $(M4MACROS)
57         cd $(srcdir) && aclocal -I m4
58
59 config.status: configure
60         $(SHELL) config.status --recheck
61
62 # autoheader might not change config.hin, so touch a stamp file.
63 $(srcdir)/config.hin: stamp-h.in
64 $(srcdir)/stamp-h.in: configure.ac $(srcdir)/aclocal.m4
65         cd $(srcdir) && autoheader
66         echo timestamp > $(srcdir)/stamp-h.in
67
68 config.h: stamp-h
69 stamp-h: config.hin config.status
70         $(SHELL) config.status
71
72 # Always create the site-font directory as a guide to the user.
73 install_data:
74         -test -d $(DESTDIR)$(localfontdir) \
75           || $(mkinstalldirs) $(DESTDIR)$(localfontdir)
76
77 ########################################################################
78 # Emacs settings
79 ########################################################################
80 #
81 # Local Variables:
82 # mode: makefile
83 # End: