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