1 # Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2006
2 # Free Software Foundation, Inc.
3 # Written by James Clark (jjc@jclark.com)
5 # This file is part of groff.
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 2, or (at your option) any later
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
17 # You should have received a copy of the GNU General Public License along
18 # with groff; see the file COPYING. If not, write to the Free Software
19 # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
30 src/include/config.h \
35 CLEANADD=Makefile.cfg conftest*
38 $(srcdir)/m4/groff.m4 \
39 $(srcdir)/m4/codeset.m4 $(srcdir)/m4/glibc21.m4 \
40 $(srcdir)/m4/iconv.m4 \
41 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-ld.m4 $(srcdir)/m4/lib-prefix.m4
45 $(srcdir)/configure: configure.ac $(srcdir)/aclocal.m4
46 cd $(srcdir) && autoconf
48 $(srcdir)/aclocal.m4: $(M4MACROS)
49 cd $(srcdir) && aclocal -I m4
51 config.status: configure
52 $(SHELL) config.status --recheck
54 # autoheader might not change config.hin, so touch a stamp file.
55 $(srcdir)/config.hin: stamp-h.in
56 $(srcdir)/stamp-h.in: configure.ac $(srcdir)/aclocal.m4
57 cd $(srcdir) && autoheader
58 echo timestamp > $(srcdir)/stamp-h.in
61 stamp-h: config.hin config.status
62 $(SHELL) config.status
64 # Always create the site-font directory as a guide to the user.
66 -test -d $(DESTDIR)$(localfontdir) \
67 || $(mkinstalldirs) $(DESTDIR)$(localfontdir)