#
#	fhist - file history and comparison tools
#	Copyright (C) 1990-1994, 1998, 1999, 2002, 2004 Peter Miller;
#	All rights reserved.
#
#	This program is free software; you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation; either version 2 of the License, or
#	(at your option) any later version.
#
#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with this program; if not, write to the Free Software
#	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
#
# MANIFEST: instructions to make, how to build the package
#

#
# directory containing the source
#
srcdir = @srcdir@
VPATH = @srcdir@

#
# the name of the install program to use
#
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

#
# the name of the compiler to use
#
CC = @CC@

#
# The compiler flags to use
#
CFLAGS = @CFLAGS@

#
# The linker flags to use
#
LDFLAGS = @LDFLAGS@

#
# prefix for installation path
#
prefix = @prefix@
exec_prefix = @exec_prefix@

#
# where to put the library directory
#	(contains architecture-specific data, don't use exec_prefix)
#
libdir = $(RPM_BUILD_ROOT)@libdir@

#
# where to put the locale files
#	(contains architecture-specific data, don't use exec_prefix)
#
NLSDIR = $(RPM_BUILD_ROOT)@NLSDIR@

#
# where to put the shared directory
#	(contains architecture-neutral data, don't use exec_prefix)
#
datadir = $(RPM_BUILD_ROOT)@datadir@

#
# where to put the executables
#
bindir = $(RPM_BUILD_ROOT)@bindir@

#
# where to put the manuals
#
mandir = $(RPM_BUILD_ROOT)@mandir@

#
# Which yacc to use
#
YACC = @YACC@

#
# extra libraries required for your system
#
LIBS = @LIBS@

#
# shell to use to run tests and commands
#
SH = @SH@

#
# command used to construct libraries
#
AR = ar

#
# program used to place index within libraries
#
RANLIB = @RANLIB@

#
# The program used to compile the message catalogues.  Ideally, you
# should use the msgfmt in the GNU Gettext package.  (The SunOS one is
# brain-dead, and the Solaris one is hardly better.)
#
MSGFMT = @MSGFMT@
MSGCAT = @MSGCAT@

#
# The program used to format the documentation.
#
GROFF = @GROFF@

#
# where to find the soelim command
#
SOELIM = @SOELIM@

#
# Set MANLANG to English, to select the man pages to be installed into
# $(mandir).  If you want your manual pages in some other (supported)
# language, set it here.
#
# The man pages for all supported languages are also installed into
# $(libdir)/$(MANLANG)/manX/Y.X, so that it is only necessary to append
# $(libdir) to $MANPATH, if your man understands $LANG.
#
MANLANG = en

#
# Set HAVE_I18N to ``yes'' if your system has the gettext() system call
# and the msgfmt utility, or ``no'' if it does not.
#
HAVE_I18N = @internationalization@

#
# Set HAVE_GROFF to ``yes'' if your system has GNU Groff installed,
# or ``no'' if it does not.
#
HAVE_GROFF = @have_groff@

#
# Mess with the names of installed executables.
#
# The prefix is added to the front, the suffix is added to the back.
# Both are usually empty.  (The suffix does not include the executable
# file extension.)
#
PROGRAM_PREFIX = @PROGRAM_PREFIX@
PROGRAM_SUFFIX = @PROGRAM_SUFFIX@

#
# This is the file extension of executable files.
# It is empty for UNIX, and .EXE for the unmentionable one.
#
EXEEXT = @EXEEXT@

#
# This is the file extension of object files.
# It is .o for UNIX, and .O or .OBJ for the unmentionable one.
#
OBJEXT = @OBJEXT@

#
# This is the file extension of library files.  NO DOT.
#
LIBEXT = a

#
# You should not need to alter anything below this point.
#------------------------------------------------------------

default: all

common/ac/libintl.$(OBJEXT): common/ac/libintl.c common/ac/libintl.h \
		common/config.h common/config.messy.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/ac/libintl.c
	mv libintl.$(OBJEXT) $@

common/ac/string.$(OBJEXT): common/ac/string.c common/ac/stddef.h \
		common/config.h common/config.messy.h common/ac/stdlib.h \
		common/ac/string.h common/ac/stdio.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/ac/string.c
	mv string.$(OBJEXT) $@

common/ac/unistd.$(OBJEXT): common/ac/unistd.c common/ac/unistd.h \
		common/config.h common/config.messy.h \
		common/ac/sys/types.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/ac/unistd.c
	mv unistd.$(OBJEXT) $@

common/ac/wchar.$(OBJEXT): common/ac/wchar.c common/ac/wchar.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/ac/time.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/ac/wchar.c
	mv wchar.$(OBJEXT) $@

common/ac/wctype.$(OBJEXT): common/ac/wctype.c common/ac/ctype.h \
		common/config.h common/config.messy.h common/ac/wctype.h \
		common/ac/stddef.h common/main.h common/ac/limits.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/ac/wctype.c
	mv wctype.$(OBJEXT) $@

common/arglex.$(OBJEXT): common/arglex.c common/ac/stddef.h \
		common/config.h common/config.messy.h common/ac/stdlib.h \
		common/ac/string.h common/ac/ctype.h common/arglex.h \
		common/main.h common/cmalloc.h common/error_intl.h \
		common/sub.h common/attrib_forma.h common/language.h \
		common/progname.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/arglex.c
	mv arglex.$(OBJEXT) $@

common/cmalloc.$(OBJEXT): common/cmalloc.c common/ac/errno.h \
		common/config.h common/config.messy.h common/ac/stdlib.h \
		common/ac/stddef.h common/cmalloc.h common/main.h \
		common/error.h common/attrib_forma.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/cmalloc.c
	mv cmalloc.$(OBJEXT) $@

common/compare.$(OBJEXT): common/compare.c common/ac/ctype.h \
		common/config.h common/config.messy.h common/ac/stddef.h \
		common/ac/stdio.h common/main.h common/ac/string.h \
		common/ac/libintl.h common/compare.h common/cmalloc.h \
		common/error.h common/attrib_forma.h common/error_intl.h \
		common/sub.h common/fcheck.h common/input.h \
		common/input/file.h common/ac/sys/stat.h \
		common/ac/sys/types.h common/input/file_text.h \
		common/input/quotprinenco.h common/input/hexify.h \
		common/str.h common/ac/stdarg.h common/trace.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/compare.c
	mv compare.$(OBJEXT) $@

common/env.$(OBJEXT): common/env.c common/ac/stddef.h common/config.h \
		common/config.messy.h common/ac/stdlib.h \
		common/ac/string.h common/env.h common/main.h \
		common/mem.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/env.c
	mv env.$(OBJEXT) $@

common/error.$(OBJEXT): common/error.c common/ac/ctype.h common/config.h \
		common/config.messy.h common/ac/errno.h \
		common/ac/stdarg.h common/ac/stddef.h common/ac/stdio.h \
		common/main.h common/ac/stdlib.h common/ac/string.h \
		common/error.h common/attrib_forma.h common/mprintf.h \
		common/progname.h common/quit.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/error.c
	mv error.$(OBJEXT) $@

common/error_intl.$(OBJEXT): common/error_intl.c common/ac/stdio.h \
		common/config.h common/config.messy.h common/main.h \
		common/ac/limits.h common/ac/string.h common/ac/wchar.h \
		common/ac/stddef.h common/ac/time.h common/ac/wctype.h \
		common/ac/ctype.h common/error.h common/attrib_forma.h \
		common/error_intl.h common/sub.h common/language.h \
		common/page.h common/progname.h common/quit.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/error_intl.c
	mv error_intl.$(OBJEXT) $@

common/fcheck.$(OBJEXT): common/fcheck.c common/ac/string.h \
		common/config.h common/config.messy.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/main.h common/fcheck.h common/ac/stdio.h \
		common/str.h common/ac/stddef.h common/ac/stdarg.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/fcheck.c
	mv fcheck.$(OBJEXT) $@

common/fileio.$(OBJEXT): common/fileio.c common/ac/errno.h \
		common/config.h common/config.messy.h \
		common/ac/libintl.h common/main.h common/ac/stdarg.h \
		common/ac/stdio.h common/ac/string.h common/ac/unistd.h \
		common/ac/sys/types.h common/error_intl.h common/sub.h \
		common/attrib_forma.h common/fcheck.h common/fileio.h \
		common/cmalloc.h common/ac/stddef.h common/str.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/fileio.c
	mv fileio.$(OBJEXT) $@

common/help.$(OBJEXT): common/help.c common/ac/stdlib.h common/config.h \
		common/config.messy.h common/ac/unistd.h \
		common/ac/sys/types.h common/arglex.h common/main.h \
		common/env.h common/error.h common/attrib_forma.h \
		common/error_intl.h common/sub.h common/help.h \
		common/libdir.h common/progname.h common/quit.h \
		common/str_list.h common/str.h common/ac/stddef.h \
		common/ac/stdarg.h common/trace.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/help.c
	mv help.$(OBJEXT) $@

common/input.$(OBJEXT): common/input.c common/ac/ctype.h common/config.h \
		common/config.messy.h common/ac/string.h common/fcheck.h \
		common/ac/stdio.h common/main.h common/input/private.h \
		common/input.h common/mem.h common/ac/stddef.h \
		common/trace.h common/attrib_forma.h common/cmalloc.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input.c
	mv input.$(OBJEXT) $@

common/input/crlf.$(OBJEXT): common/input/crlf.c common/error.h \
		common/attrib_forma.h common/main.h common/input/crlf.h \
		common/input.h common/input/private.h common/trace.h \
		common/ac/stddef.h common/config.h common/config.messy.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/crlf.c
	mv crlf.$(OBJEXT) $@

common/input/file.$(OBJEXT): common/input/file.c common/ac/unistd.h \
		common/config.h common/config.messy.h \
		common/ac/sys/types.h common/error.h \
		common/attrib_forma.h common/main.h common/fcheck.h \
		common/ac/stdio.h common/input/file.h common/ac/stddef.h \
		common/ac/sys/stat.h common/input.h \
		common/input/private.h common/input/stdin.h common/mem.h \
		common/str.h common/ac/stdarg.h common/error_intl.h \
		common/sub.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/file.c
	mv file.$(OBJEXT) $@

common/input/file_text.$(OBJEXT): common/input/file_text.c \
		common/input/crlf.h common/input.h common/main.h \
		common/input/file.h common/ac/stddef.h common/config.h \
		common/config.messy.h common/ac/sys/stat.h \
		common/ac/sys/types.h common/input/file_text.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/file_text.c
	mv file_text.$(OBJEXT) $@

common/input/hexify.$(OBJEXT): common/input/hexify.c common/ac/ctype.h \
		common/config.h common/config.messy.h common/ac/stdio.h \
		common/main.h common/error.h common/attrib_forma.h \
		common/input/hexify.h common/input.h \
		common/input/private.h common/trace.h common/ac/stddef.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/hexify.c
	mv hexify.$(OBJEXT) $@

common/input/private.$(OBJEXT): common/input/private.c \
		common/input/private.h common/input.h common/main.h \
		common/mem.h common/ac/stddef.h common/config.h \
		common/config.messy.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/private.c
	mv private.$(OBJEXT) $@

common/input/pushba_trans.$(OBJEXT): common/input/pushba_trans.c \
		common/input/private.h common/input.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/pushba_trans.c
	mv pushba_trans.$(OBJEXT) $@

common/input/quotprinenco.$(OBJEXT): common/input/quotprinenco.c \
		common/error.h common/attrib_forma.h common/main.h \
		common/input/quotprinenco.h common/input.h \
		common/input/private.h common/trace.h common/ac/stddef.h \
		common/config.h common/config.messy.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/quotprinenco.c
	mv quotprinenco.$(OBJEXT) $@

common/input/stdin.$(OBJEXT): common/input/stdin.c common/ac/stdio.h \
		common/config.h common/config.messy.h common/main.h \
		common/ac/sys/stat.h common/ac/sys/types.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/input/private.h common/input.h \
		common/input/stdin.h common/str.h common/ac/stddef.h \
		common/ac/stdarg.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/input/stdin.c
	mv stdin.$(OBJEXT) $@

common/isdir.$(OBJEXT): common/isdir.c common/ac/sys/stat.h \
		common/ac/sys/types.h common/config.h \
		common/config.messy.h common/isdir.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/isdir.c
	mv isdir.$(OBJEXT) $@

common/language.$(OBJEXT): common/language.c common/ac/locale.h \
		common/config.h common/config.messy.h \
		common/ac/libintl.h common/main.h common/ac/stdlib.h \
		common/env.h common/error.h common/attrib_forma.h \
		common/language.h common/libdir.h common/progname.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/language.c
	mv language.$(OBJEXT) $@

common/libdir.$(OBJEXT): common/libdir.c etc/libdir-h common/libdir.h \
		common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/libdir.c
	mv libdir.$(OBJEXT) $@

common/mem.$(OBJEXT): common/mem.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/stddef.h \
		common/ac/stdlib.h common/ac/string.h common/error.h \
		common/attrib_forma.h common/main.h common/mem.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/mem.c
	mv mem.$(OBJEXT) $@

common/mprintf.$(OBJEXT): common/mprintf.c common/ac/errno.h \
		common/config.h common/config.messy.h common/ac/stdio.h \
		common/main.h common/ac/stdlib.h common/ac/string.h \
		common/error.h common/attrib_forma.h common/mprintf.h \
		common/ac/stdarg.h common/str.h common/ac/stddef.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/mprintf.c
	mv mprintf.$(OBJEXT) $@

common/output.$(OBJEXT): common/output.c common/error.h \
		common/attrib_forma.h common/main.h common/mem.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/mprintf.h common/ac/stdarg.h \
		common/output/private.h common/output.h common/str.h \
		common/trace.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/output.c
	mv output.$(OBJEXT) $@

common/output/file.$(OBJEXT): common/output/file.c common/ac/errno.h \
		common/config.h common/config.messy.h common/ac/stdio.h \
		common/main.h common/fcheck.h common/mem.h \
		common/ac/stddef.h common/output/file.h common/output.h \
		common/ac/stdarg.h common/attrib_forma.h \
		common/output/private.h common/output/stdout.h \
		common/error_intl.h common/sub.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/output/file.c
	mv file.$(OBJEXT) $@

common/output/private.$(OBJEXT): common/output/private.c \
		common/ac/string.h common/config.h common/config.messy.h \
		common/error.h common/attrib_forma.h common/main.h \
		common/mem.h common/ac/stddef.h common/output/private.h \
		common/output.h common/ac/stdarg.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/output/private.c
	mv private.$(OBJEXT) $@

common/output/quotprindeco.$(OBJEXT): common/output/quotprindeco.c \
		common/output/private.h common/output.h \
		common/ac/stdarg.h common/config.h common/config.messy.h \
		common/ac/stddef.h common/attrib_forma.h common/main.h \
		common/output/quotprindeco.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/output/quotprindeco.c
	mv quotprindeco.$(OBJEXT) $@

common/output/stdout.$(OBJEXT): common/output/stdout.c \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/ac/stdio.h common/main.h common/ac/sys/stat.h \
		common/ac/sys/types.h common/fcheck.h \
		common/output/private.h common/output.h \
		common/ac/stdarg.h common/attrib_forma.h \
		common/output/stdout.h common/str.h common/error_intl.h \
		common/sub.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/output/stdout.c
	mv stdout.$(OBJEXT) $@

common/page.$(OBJEXT): common/page.c common/ac/stdlib.h common/config.h \
		common/config.messy.h common/ac/termios.h \
		common/arglex.h common/main.h common/error_intl.h \
		common/sub.h common/attrib_forma.h common/page.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/page.c
	mv page.$(OBJEXT) $@

common/pager.$(OBJEXT): common/pager.c common/ac/stdio.h common/config.h \
		common/config.messy.h common/main.h common/ac/signal.h \
		common/ac/stdlib.h common/ac/unistd.h \
		common/ac/sys/types.h common/ac/libintl.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/pager.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/pager.c
	mv pager.$(OBJEXT) $@

common/progname.$(OBJEXT): common/progname.c common/ac/string.h \
		common/config.h common/config.messy.h common/progname.h \
		common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/progname.c
	mv progname.$(OBJEXT) $@

common/quit.$(OBJEXT): common/quit.c common/ac/stdlib.h common/config.h \
		common/config.messy.h common/quit.h common/main.h \
		common/undo.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/quit.c
	mv quit.$(OBJEXT) $@

common/str.$(OBJEXT): common/str.c common/ac/stddef.h common/config.h \
		common/config.messy.h common/ac/stdio.h common/main.h \
		common/ac/stdlib.h common/ac/string.h common/ac/ctype.h \
		common/ac/stdarg.h common/error.h common/attrib_forma.h \
		common/mem.h common/mprintf.h common/str.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/str.c
	mv str.$(OBJEXT) $@

common/str_list.$(OBJEXT): common/str_list.c common/ac/ctype.h \
		common/config.h common/config.messy.h common/ac/stddef.h \
		common/ac/string.h common/ac/stdlib.h common/ac/time.h \
		common/mem.h common/main.h common/str.h \
		common/ac/stdarg.h common/attrib_forma.h \
		common/str_list.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/str_list.c
	mv str_list.$(OBJEXT) $@

common/sub.$(OBJEXT): common/sub.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/libintl.h common/main.h \
		common/ac/limits.h common/ac/string.h common/ac/wctype.h \
		common/ac/ctype.h common/ac/stddef.h common/arglex.h \
		common/error.h common/attrib_forma.h common/error_intl.h \
		common/sub.h common/language.h common/mem.h common/str.h \
		common/ac/stdarg.h common/sub/basename.h \
		common/sub/date.h common/sub/dirname.h \
		common/sub/downcase.h common/sub/errno.h \
		common/sub/expr.h common/sub/ident.h common/sub/length.h \
		common/sub/left.h common/sub/plural.h \
		common/sub/private.h common/sub/progname.h \
		common/sub/right.h common/sub/upcase.h \
		common/sub/zero_pad.h common/trace.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub.c
	mv sub.$(OBJEXT) $@

common/sub/basename.$(OBJEXT): common/sub/basename.c common/ac/string.h \
		common/config.h common/config.messy.h \
		common/sub/basename.h common/main.h common/sub/private.h \
		common/sub.h common/attrib_forma.h common/trace.h \
		common/ac/stddef.h common/wstr_list.h common/wstr.h \
		common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/basename.c
	mv basename.$(OBJEXT) $@

common/sub/date.$(OBJEXT): common/sub/date.c common/ac/time.h \
		common/config.h common/config.messy.h common/language.h \
		common/main.h common/str.h common/ac/stddef.h \
		common/ac/stdarg.h common/attrib_forma.h \
		common/sub/date.h common/sub/private.h common/sub.h \
		common/trace.h common/wstr_list.h common/wstr.h \
		common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/date.c
	mv date.$(OBJEXT) $@

common/sub/dirname.$(OBJEXT): common/sub/dirname.c common/sub/dirname.h \
		common/main.h common/sub/private.h common/sub.h \
		common/attrib_forma.h common/trace.h common/ac/stddef.h \
		common/config.h common/config.messy.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/dirname.c
	mv dirname.$(OBJEXT) $@

common/sub/downcase.$(OBJEXT): common/sub/downcase.c \
		common/sub/downcase.h common/main.h common/sub/private.h \
		common/sub.h common/attrib_forma.h common/trace.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/wstr_list.h common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/downcase.c
	mv downcase.$(OBJEXT) $@

common/sub/errno.$(OBJEXT): common/sub/errno.c common/ac/errno.h \
		common/config.h common/config.messy.h common/ac/grp.h \
		common/ac/sys/types.h common/ac/pwd.h common/ac/string.h \
		common/ac/unistd.h common/str.h common/ac/stddef.h \
		common/ac/stdarg.h common/attrib_forma.h common/main.h \
		common/sub/errno.h common/sub/private.h common/sub.h \
		common/trace.h common/wstr_list.h common/wstr.h \
		common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/errno.c
	mv errno.$(OBJEXT) $@

common/sub/expr.$(OBJEXT): common/sub/expr.c common/sub/expr.h \
		common/main.h common/sub/expr_gram.h \
		common/sub/private.h common/sub.h common/attrib_forma.h \
		common/str.h common/ac/stddef.h common/config.h \
		common/config.messy.h common/ac/stdarg.h common/trace.h \
		common/wstr_list.h common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/expr.c
	mv expr.$(OBJEXT) $@

common/sub/expr_gram.gen.c common/sub/expr_gram.gen.h: \
		common/sub/expr_gram.y
	@echo Expect no conflicts:
	$(YACC) -d common/sub/expr_gram.y
	sed -e 's/[yY][yY]/sub_expr_gram_/g' -e '/#include.<stdio.h>/d' \
		-e '/#include.<stdlib.h>/d' -e '/#include.<stddef.h>/d' \
		y.tab.c > common/sub/expr_gram.gen.c
	sed -e 's/[yY][yY]/sub_expr_gram_/g' y.tab.h > \
		common/sub/expr_gram.gen.h
	rm y.tab.c y.tab.h

common/sub/expr_gram.gen.$(OBJEXT): common/sub/expr_gram.gen.c \
		common/ac/stdarg.h common/config.h common/config.messy.h \
		common/ac/stdio.h common/main.h common/ac/stdlib.h \
		common/str.h common/ac/stddef.h common/attrib_forma.h \
		common/sub/expr_gram.h common/sub/expr_lex.h \
		common/sub/private.h common/sub.h common/trace.h
	$(CC) $(CPPFLAGS) $(CFLAGS) -Icommon -Icommon -c \
		common/sub/expr_gram.gen.c
	mv expr_gram.gen.$(OBJEXT) $@

common/sub/expr_lex.$(OBJEXT): common/sub/expr_lex.c common/str.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/ac/stdarg.h common/attrib_forma.h common/main.h \
		common/sub/expr_lex.h common/sub/expr_gram.gen.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/expr_lex.c
	mv expr_lex.$(OBJEXT) $@

common/sub/ident.$(OBJEXT): common/sub/ident.c common/sub/ident.h \
		common/main.h common/sub/private.h common/sub.h \
		common/attrib_forma.h common/trace.h common/ac/stddef.h \
		common/config.h common/config.messy.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/ident.c
	mv ident.$(OBJEXT) $@

common/sub/left.$(OBJEXT): common/sub/left.c common/ac/stdlib.h \
		common/config.h common/config.messy.h common/str.h \
		common/ac/stddef.h common/ac/stdarg.h \
		common/attrib_forma.h common/main.h common/sub/left.h \
		common/sub/private.h common/sub.h common/trace.h \
		common/wstr_list.h common/wstr.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/left.c
	mv left.$(OBJEXT) $@

common/sub/length.$(OBJEXT): common/sub/length.c common/str.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/ac/stdarg.h common/attrib_forma.h common/main.h \
		common/sub/length.h common/sub/private.h common/sub.h \
		common/trace.h common/wstr_list.h common/wstr.h \
		common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/length.c
	mv length.$(OBJEXT) $@

common/sub/plural.$(OBJEXT): common/sub/plural.c common/ac/stdlib.h \
		common/config.h common/config.messy.h common/str.h \
		common/ac/stddef.h common/ac/stdarg.h \
		common/attrib_forma.h common/main.h common/sub/plural.h \
		common/sub/private.h common/sub.h common/trace.h \
		common/wstr_list.h common/wstr.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/plural.c
	mv plural.$(OBJEXT) $@

common/sub/progname.$(OBJEXT): common/sub/progname.c common/progname.h \
		common/main.h common/sub/progname.h common/sub/private.h \
		common/sub.h common/attrib_forma.h common/trace.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/wstr_list.h common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/progname.c
	mv progname.$(OBJEXT) $@

common/sub/right.$(OBJEXT): common/sub/right.c common/str.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/ac/stdarg.h common/attrib_forma.h common/main.h \
		common/sub/private.h common/sub.h common/sub/right.h \
		common/trace.h common/wstr_list.h common/wstr.h \
		common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/right.c
	mv right.$(OBJEXT) $@

common/sub/upcase.$(OBJEXT): common/sub/upcase.c common/sub/private.h \
		common/sub.h common/attrib_forma.h common/main.h \
		common/sub/upcase.h common/trace.h common/ac/stddef.h \
		common/config.h common/config.messy.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/upcase.c
	mv upcase.$(OBJEXT) $@

common/sub/zero_pad.$(OBJEXT): common/sub/zero_pad.c common/mem.h \
		common/ac/stddef.h common/config.h common/config.messy.h \
		common/main.h common/str.h common/ac/stdarg.h \
		common/attrib_forma.h common/sub/private.h common/sub.h \
		common/sub/zero_pad.h common/trace.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/sub/zero_pad.c
	mv zero_pad.$(OBJEXT) $@

common/trace.$(OBJEXT): common/trace.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/stddef.h \
		common/ac/stdio.h common/main.h common/ac/string.h \
		common/ac/stdarg.h common/error.h common/attrib_forma.h \
		common/mem.h common/progname.h common/str.h \
		common/trace.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/trace.c
	mv trace.$(OBJEXT) $@

common/undo.$(OBJEXT): common/undo.c common/ac/unistd.h common/config.h \
		common/config.messy.h common/ac/sys/types.h common/mem.h \
		common/ac/stddef.h common/main.h common/str.h \
		common/ac/stdarg.h common/attrib_forma.h common/undo.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/undo.c
	mv undo.$(OBJEXT) $@

common/version.$(OBJEXT): common/version.c common/ac/stdio.h \
		common/config.h common/config.messy.h common/main.h \
		common/arglex.h common/error.h common/attrib_forma.h \
		common/help.h common/progname.h common/quit.h \
		common/str.h common/ac/stddef.h common/ac/stdarg.h \
		common/trace.h common/version.h common/version_stmp.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/version.c
	mv version.$(OBJEXT) $@

common/version_stmp.$(OBJEXT): common/version_stmp.c common/patchlevel.h \
		common/version_stmp.h common/main.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/version_stmp.c
	mv version_stmp.$(OBJEXT) $@

common/wstr.$(OBJEXT): common/wstr.c common/ac/limits.h common/config.h \
		common/config.messy.h common/ac/stdarg.h \
		common/ac/stddef.h common/ac/stdio.h common/main.h \
		common/ac/stdlib.h common/ac/string.h common/ac/wchar.h \
		common/ac/time.h common/ac/wctype.h common/ac/ctype.h \
		common/error.h common/attrib_forma.h common/language.h \
		common/mem.h common/str.h common/trace.h common/wstr.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/wstr.c
	mv wstr.$(OBJEXT) $@

common/wstr_list.$(OBJEXT): common/wstr_list.c common/ac/string.h \
		common/config.h common/config.messy.h common/wstr_list.h \
		common/wstr.h common/ac/stdlib.h common/main.h \
		common/mem.h common/ac/stddef.h
	$(CC) $(CFLAGS) -Icommon -Icommon -c common/wstr_list.c
	mv wstr_list.$(OBJEXT) $@

fcomp/main.$(OBJEXT): fcomp/main.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/stdio.h common/main.h \
		common/ac/stdlib.h common/ac/string.h common/arglex.h \
		common/cmalloc.h common/ac/stddef.h common/compare.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/fileio.h common/help.h common/isdir.h \
		common/progname.h common/quit.h common/version.h
	$(CC) $(CFLAGS) -Ifcomp -Icommon -c fcomp/main.c
	mv main.$(OBJEXT) $@

fhist/breaks.$(OBJEXT): fhist/breaks.c common/ac/signal.h \
		common/config.h common/config.messy.h common/ac/unistd.h \
		common/ac/sys/types.h fhist/breaks.h common/main.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/breaks.c
	mv breaks.$(OBJEXT) $@

fhist/diff.$(OBJEXT): fhist/diff.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/stdio.h common/main.h \
		common/ac/stdlib.h common/ac/string.h common/ac/unistd.h \
		common/ac/sys/types.h common/cmalloc.h \
		common/ac/stddef.h common/compare.h fhist/diff.h \
		common/error.h common/attrib_forma.h common/error_intl.h \
		common/sub.h fhist/extract.h common/fcheck.h \
		fhist/fhist.h common/fileio.h fhist/modlin.h \
		common/str.h common/ac/stdarg.h fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/diff.c
	mv diff.$(OBJEXT) $@

fhist/extract.$(OBJEXT): fhist/extract.c common/ac/libintl.h \
		common/config.h common/config.messy.h common/main.h \
		common/ac/stdio.h common/ac/string.h common/ac/unistd.h \
		common/ac/sys/types.h common/cmalloc.h \
		common/ac/stddef.h common/compare.h common/error_intl.h \
		common/sub.h common/attrib_forma.h fhist/extract.h \
		common/fcheck.h fhist/fhist.h common/fileio.h \
		fhist/modlin.h common/output/file.h common/output.h \
		common/ac/stdarg.h common/output/stdout.h \
		common/output/quotprindeco.h fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/extract.c
	mv extract.$(OBJEXT) $@

fhist/list.$(OBJEXT): fhist/list.c common/ac/libintl.h common/config.h \
		common/config.messy.h common/main.h common/ac/stdio.h \
		common/cmalloc.h common/ac/stddef.h common/compare.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/fcheck.h fhist/fhist.h common/fileio.h \
		fhist/list.h fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/list.c
	mv list.$(OBJEXT) $@

fhist/main.$(OBJEXT): fhist/main.c common/ac/ctype.h common/config.h \
		common/config.messy.h common/ac/sys/types.h \
		common/ac/stdio.h common/main.h common/ac/errno.h \
		common/ac/dirent.h common/ac/unistd.h common/ac/stdlib.h \
		common/ac/string.h common/ac/sys/stat.h common/arglex.h \
		fhist/breaks.h common/cmalloc.h common/ac/stddef.h \
		common/compare.h fhist/diff.h common/error_intl.h \
		common/sub.h common/attrib_forma.h fhist/extract.h \
		fhist/fhist.h common/help.h common/isdir.h fhist/list.h \
		fhist/modlin.h fhist/name.h common/progname.h \
		fhist/prune.h common/quit.h common/str.h \
		common/ac/stdarg.h fhist/subroutine.h common/trace.h \
		fhist/update.h common/version.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/main.c
	mv main.$(OBJEXT) $@

fhist/modlin.$(OBJEXT): fhist/modlin.c common/ac/string.h \
		common/config.h common/config.messy.h common/cmalloc.h \
		common/ac/stddef.h common/main.h common/compare.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/fcheck.h common/ac/stdio.h fhist/fhist.h \
		common/fileio.h common/input/file_text.h common/input.h \
		common/input/file.h common/ac/sys/stat.h \
		common/ac/sys/types.h common/input/quotprinenco.h \
		fhist/modlin.h common/trace.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/modlin.c
	mv modlin.$(OBJEXT) $@

fhist/name.$(OBJEXT): fhist/name.c common/ac/ctype.h common/config.h \
		common/config.messy.h common/ac/errno.h \
		common/ac/stdio.h common/main.h common/ac/string.h \
		fhist/breaks.h common/compare.h common/error_intl.h \
		common/sub.h common/attrib_forma.h fhist/fhist.h \
		common/fileio.h fhist/name.h fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/name.c
	mv name.$(OBJEXT) $@

fhist/prune.$(OBJEXT): fhist/prune.c common/ac/stdio.h common/config.h \
		common/config.messy.h common/main.h common/ac/string.h \
		fhist/breaks.h common/compare.h common/error_intl.h \
		common/sub.h common/attrib_forma.h common/fcheck.h \
		fhist/fhist.h common/fileio.h fhist/prune.h common/str.h \
		common/ac/stddef.h common/ac/stdarg.h fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/prune.c
	mv prune.$(OBJEXT) $@

fhist/subroutine.$(OBJEXT): fhist/subroutine.c common/ac/ctype.h \
		common/config.h common/config.messy.h common/ac/errno.h \
		common/ac/stdio.h common/main.h common/ac/string.h \
		common/ac/unistd.h common/ac/sys/types.h \
		common/cmalloc.h common/ac/stddef.h common/compare.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/fcheck.h fhist/fhist.h common/fileio.h \
		common/isdir.h common/str.h common/ac/stdarg.h \
		fhist/subroutine.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/subroutine.c
	mv subroutine.$(OBJEXT) $@

fhist/update.$(OBJEXT): fhist/update.c common/ac/ctype.h common/config.h \
		common/config.messy.h common/ac/errno.h common/ac/pwd.h \
		common/ac/sys/types.h common/ac/stdio.h common/main.h \
		common/ac/string.h common/ac/time.h common/ac/unistd.h \
		fhist/breaks.h common/cmalloc.h common/ac/stddef.h \
		common/compare.h common/error_intl.h common/sub.h \
		common/attrib_forma.h common/fcheck.h fhist/fhist.h \
		common/fileio.h common/input/file.h common/ac/sys/stat.h \
		common/input.h common/input/file_text.h \
		common/input/quotprinenco.h fhist/modlin.h common/str.h \
		common/ac/stdarg.h fhist/subroutine.h common/trace.h \
		common/undo.h fhist/update.h
	$(CC) $(CFLAGS) -Ifhist -Icommon -c fhist/update.c
	mv update.$(OBJEXT) $@

fmerge/main.$(OBJEXT): fmerge/main.c common/ac/errno.h common/config.h \
		common/config.messy.h common/ac/stdio.h common/main.h \
		common/ac/stdlib.h common/ac/string.h common/arglex.h \
		common/cmalloc.h common/ac/stddef.h common/compare.h \
		common/error_intl.h common/sub.h common/attrib_forma.h \
		common/fileio.h common/help.h common/progname.h \
		common/quit.h common/version.h fmerge/work.h
	$(CC) $(CFLAGS) -Ifmerge -Icommon -c fmerge/main.c
	mv main.$(OBJEXT) $@

fmerge/work.$(OBJEXT): fmerge/work.c common/ac/stdio.h common/config.h \
		common/config.messy.h common/main.h common/ac/string.h \
		common/ac/libintl.h common/cmalloc.h common/ac/stddef.h \
		common/compare.h common/error_intl.h common/sub.h \
		common/attrib_forma.h common/fcheck.h common/fileio.h \
		fmerge/work.h
	$(CC) $(CFLAGS) -Ifmerge -Icommon -c fmerge/work.c
	mv work.$(OBJEXT) $@

lib/en/LC_MESSAGES/fcomp.mo: lib/en/LC_MESSAGES/fcomp.po \
		lib/en/LC_MESSAGES/common.po
	$(SH) etc/msgfmt.sh --msgfmt=$(MSGFMT) --msgcat=$(MSGCAT) \
		--output=$@ lib/en/LC_MESSAGES/fcomp.po \
		lib/en/LC_MESSAGES/common.po

$(NLSDIR)/en/LC_MESSAGES/fcomp.mo: lib/en/LC_MESSAGES/fcomp.mo \
		lib/en/LC_MESSAGES/.nlsdir
	$(INSTALL_DATA) lib/en/LC_MESSAGES/fcomp.mo $@

lib/en/LC_MESSAGES/fhist.mo: lib/en/LC_MESSAGES/fhist.po \
		lib/en/LC_MESSAGES/common.po
	$(SH) etc/msgfmt.sh --msgfmt=$(MSGFMT) --msgcat=$(MSGCAT) \
		--output=$@ lib/en/LC_MESSAGES/fhist.po \
		lib/en/LC_MESSAGES/common.po

$(NLSDIR)/en/LC_MESSAGES/fhist.mo: lib/en/LC_MESSAGES/fhist.mo \
		lib/en/LC_MESSAGES/.nlsdir
	$(INSTALL_DATA) lib/en/LC_MESSAGES/fhist.mo $@

lib/en/LC_MESSAGES/fmerge.mo: lib/en/LC_MESSAGES/fmerge.po \
		lib/en/LC_MESSAGES/common.po
	$(SH) etc/msgfmt.sh --msgfmt=$(MSGFMT) --msgcat=$(MSGCAT) \
		--output=$@ lib/en/LC_MESSAGES/fmerge.po \
		lib/en/LC_MESSAGES/common.po

$(NLSDIR)/en/LC_MESSAGES/fmerge.mo: lib/en/LC_MESSAGES/fmerge.mo \
		lib/en/LC_MESSAGES/.nlsdir
	$(INSTALL_DATA) lib/en/LC_MESSAGES/fmerge.mo $@

lib/en/building.ps: lib/en/building/main.man
	$(SOELIM) -Ilib/en/building -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/building/main.man | $(GROFF) -s -t -p -man -mpic \
		-mpspic > $@

$(datadir)/en/building.ps: lib/en/building.ps lib/en/.datadir
	$(INSTALL_DATA) lib/en/building.ps $@

lib/en/building.dvi: lib/en/building/main.man
	$(SOELIM) -Ilib/en/building -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/building/main.man | $(GROFF) -Tdvi -s -t -p -man \
		-mpic > $@

$(datadir)/en/building.dvi: lib/en/building.dvi lib/en/.datadir
	$(INSTALL_DATA) lib/en/building.dvi $@

lib/en/building.txt: lib/en/building/main.man
	$(SOELIM) -Ilib/en/building -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/building/main.man | $(GROFF) -Tascii -s -t -p \
		-man -mpic > $@

$(datadir)/en/building.txt: lib/en/building.txt lib/en/.datadir
	$(INSTALL_DATA) lib/en/building.txt $@

$(datadir)/en/man1/fcomp.1: lib/en/man1/fcomp.1 lib/en/man1/.datadir
	$(SOELIM) -Ilib/en/man1 -Ietc lib/en/man1/fcomp.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(mandir)/man1/fcomp.1: lib/$(MANLANG)/man1/fcomp.1  lib/en/man1/.mandir
	$(SOELIM) -Ilib/$(MANLANG)/man1 -Ietc lib/$(MANLANG)/man1/fcomp.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(datadir)/en/man1/fhist.1: lib/en/man1/fhist.1 lib/en/man1/.datadir
	$(SOELIM) -Ilib/en/man1 -Ietc lib/en/man1/fhist.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(mandir)/man1/fhist.1: lib/$(MANLANG)/man1/fhist.1  lib/en/man1/.mandir
	$(SOELIM) -Ilib/$(MANLANG)/man1 -Ietc lib/$(MANLANG)/man1/fhist.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(datadir)/en/man1/fhist_lic.1: lib/en/man1/fhist_lic.1 \
		lib/en/man1/.datadir
	$(SOELIM) -Ilib/en/man1 -Ietc lib/en/man1/fhist_lic.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(mandir)/man1/fhist_lic.1: lib/$(MANLANG)/man1/fhist_lic.1 \
		lib/en/man1/.mandir
	$(SOELIM) -Ilib/$(MANLANG)/man1 -Ietc \
		lib/$(MANLANG)/man1/fhist_lic.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(datadir)/en/man1/fmerge.1: lib/en/man1/fmerge.1 lib/en/man1/.datadir
	$(SOELIM) -Ilib/en/man1 -Ietc lib/en/man1/fmerge.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

$(mandir)/man1/fmerge.1: lib/$(MANLANG)/man1/fmerge.1 \
		lib/en/man1/.mandir
	$(SOELIM) -Ilib/$(MANLANG)/man1 -Ietc \
		lib/$(MANLANG)/man1/fmerge.1 > tmp
	$(INSTALL_DATA) tmp $@
	@rm -f tmp

lib/en/readme.ps: lib/en/readme/main.man
	$(SOELIM) -Ilib/en/readme -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/readme/main.man | $(GROFF) -s -t -p -man -mpic \
		-mpspic > $@

$(datadir)/en/readme.ps: lib/en/readme.ps lib/en/.datadir
	$(INSTALL_DATA) lib/en/readme.ps $@

lib/en/readme.dvi: lib/en/readme/main.man
	$(SOELIM) -Ilib/en/readme -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/readme/main.man | $(GROFF) -Tdvi -s -t -p -man \
		-mpic > $@

$(datadir)/en/readme.dvi: lib/en/readme.dvi lib/en/.datadir
	$(INSTALL_DATA) lib/en/readme.dvi $@

lib/en/readme.txt: lib/en/readme/main.man
	$(SOELIM) -Ilib/en/readme -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/readme/main.man | $(GROFF) -Tascii -s -t -p -man \
		-mpic > $@

$(datadir)/en/readme.txt: lib/en/readme.txt lib/en/.datadir
	$(INSTALL_DATA) lib/en/readme.txt $@

lib/en/reference.ps: lib/en/reference/main.man
	$(SOELIM) -Ilib/en/reference -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/reference/main.man | $(GROFF) -s -t -p -man -mpic \
		-mpspic > $@

$(datadir)/en/reference.ps: lib/en/reference.ps lib/en/.datadir
	$(INSTALL_DATA) lib/en/reference.ps $@

lib/en/reference.dvi: lib/en/reference/main.man
	$(SOELIM) -Ilib/en/reference -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/reference/main.man | $(GROFF) -Tdvi -s -t -p -man \
		-mpic > $@

$(datadir)/en/reference.dvi: lib/en/reference.dvi lib/en/.datadir
	$(INSTALL_DATA) lib/en/reference.dvi $@

lib/en/reference.txt: lib/en/reference/main.man
	$(SOELIM) -Ilib/en/reference -Ietc -Ilib/en/man1 -Ilib/en/readme \
		lib/en/reference/main.man | $(GROFF) -Tascii -s -t -p \
		-man -mpic > $@

$(datadir)/en/reference.txt: lib/en/reference.txt lib/en/.datadir
	$(INSTALL_DATA) lib/en/reference.txt $@

t0001a: test/00/t0001a.sh all
	$(SH) test/00/t0001a.sh

t0002a: test/00/t0002a.sh all
	$(SH) test/00/t0002a.sh

t0003a: test/00/t0003a.sh all
	$(SH) test/00/t0003a.sh

t0004a: test/00/t0004a.sh all
	$(SH) test/00/t0004a.sh

t0005a: test/00/t0005a.sh all
	$(SH) test/00/t0005a.sh

t0006a: test/00/t0006a.sh all
	$(SH) test/00/t0006a.sh

t0007a: test/00/t0007a.sh all
	$(SH) test/00/t0007a.sh

t0008a: test/00/t0008a.sh all
	$(SH) test/00/t0008a.sh

t0009a: test/00/t0009a.sh all
	$(SH) test/00/t0009a.sh

t0010a: test/00/t0010a.sh all
	$(SH) test/00/t0010a.sh

t0011a: test/00/t0011a.sh all
	$(SH) test/00/t0011a.sh

t0012a: test/00/t0012a.sh all
	$(SH) test/00/t0012a.sh

t0013a: test/00/t0013a.sh all
	$(SH) test/00/t0013a.sh

t0014a: test/00/t0014a.sh all
	$(SH) test/00/t0014a.sh

t0015a: test/00/t0015a.sh all
	$(SH) test/00/t0015a.sh

t0016a: test/00/t0016a.sh all
	$(SH) test/00/t0016a.sh

t0017a: test/00/t0017a.sh all
	$(SH) test/00/t0017a.sh

t0018a: test/00/t0018a.sh all
	$(SH) test/00/t0018a.sh

t0019a: test/00/t0019a.sh all
	$(SH) test/00/t0019a.sh

t0020a: test/00/t0020a.sh all
	$(SH) test/00/t0020a.sh

t0021a: test/00/t0021a.sh all
	$(SH) test/00/t0021a.sh

t0022a: test/00/t0022a.sh all
	$(SH) test/00/t0022a.sh

t0023a: test/00/t0023a.sh all
	$(SH) test/00/t0023a.sh

t0024a: test/00/t0024a.sh all
	$(SH) test/00/t0024a.sh

t0025a: test/00/t0025a.sh all
	$(SH) test/00/t0025a.sh

t0026a: test/00/t0026a.sh all
	$(SH) test/00/t0026a.sh

t0027a: test/00/t0027a.sh all
	$(SH) test/00/t0027a.sh

t0028a: test/00/t0028a.sh all
	$(SH) test/00/t0028a.sh

t0029a: test/00/t0029a.sh all
	$(SH) test/00/t0029a.sh

t0030a: test/00/t0030a.sh all
	$(SH) test/00/t0030a.sh


lib/en/LC_MESSAGES/.nlsdir: lib/en/.nlsdir
	-$(INSTALL) -m 0755 -d $(NLSDIR)/en/LC_MESSAGES
	@-test -d $(NLSDIR)/en/LC_MESSAGES && touch $@
	@sleep 1

lib/en/.nlsdir: lib/.nlsdir
	-$(INSTALL) -m 0755 -d $(NLSDIR)/en
	@-test -d $(NLSDIR)/en && touch $@
	@sleep 1

lib/.nlsdir:
	-$(INSTALL) -m 0755 -d $(NLSDIR)
	@-test -d $(NLSDIR) && touch $@
	@sleep 1

lib/en/man1/.mandir: lib/en/.mandir
	-$(INSTALL) -m 0755 -d $(mandir)/man1
	@-test -d $(mandir)/man1 && touch $@
	@sleep 1

lib/en/.mandir:
	-$(INSTALL) -m 0755 -d $(mandir)
	@-test -d $(mandir) && touch $@
	@sleep 1

lib/en/man1/.datadir: lib/en/.datadir
	-$(INSTALL) -m 0755 -d $(datadir)/en/man1
	@-test -d $(datadir)/en/man1 && touch $@
	@sleep 1

lib/en/.datadir: lib/.datadir
	-$(INSTALL) -m 0755 -d $(datadir)/en
	@-test -d $(datadir)/en && touch $@
	@sleep 1

lib/.datadir:
	-$(INSTALL) -m 0755 -d $(datadir)
	@-test -d $(datadir) && touch $@
	@sleep 1

all: binaries po doc

CommonFiles = common/ac/libintl.$(OBJEXT) common/ac/string.$(OBJEXT) \
		common/ac/unistd.$(OBJEXT) common/ac/wchar.$(OBJEXT) \
		common/ac/wctype.$(OBJEXT) common/arglex.$(OBJEXT) \
		common/cmalloc.$(OBJEXT) common/compare.$(OBJEXT) \
		common/env.$(OBJEXT) common/error.$(OBJEXT) \
		common/error_intl.$(OBJEXT) common/fcheck.$(OBJEXT) \
		common/fileio.$(OBJEXT) common/help.$(OBJEXT) \
		common/input.$(OBJEXT) common/input/crlf.$(OBJEXT) \
		common/input/file.$(OBJEXT) \
		common/input/file_text.$(OBJEXT) \
		common/input/hexify.$(OBJEXT) \
		common/input/private.$(OBJEXT) \
		common/input/pushba_trans.$(OBJEXT) \
		common/input/quotprinenco.$(OBJEXT) \
		common/input/stdin.$(OBJEXT) common/isdir.$(OBJEXT) \
		common/language.$(OBJEXT) common/libdir.$(OBJEXT) \
		common/mem.$(OBJEXT) common/mprintf.$(OBJEXT) \
		common/output.$(OBJEXT) common/output/file.$(OBJEXT) \
		common/output/private.$(OBJEXT) \
		common/output/quotprindeco.$(OBJEXT) \
		common/output/stdout.$(OBJEXT) common/page.$(OBJEXT) \
		common/pager.$(OBJEXT) common/progname.$(OBJEXT) \
		common/quit.$(OBJEXT) common/str.$(OBJEXT) \
		common/str_list.$(OBJEXT) common/sub.$(OBJEXT) \
		common/sub/basename.$(OBJEXT) common/sub/date.$(OBJEXT) \
		common/sub/dirname.$(OBJEXT) \
		common/sub/downcase.$(OBJEXT) common/sub/errno.$(OBJEXT) \
		common/sub/expr.$(OBJEXT) \
		common/sub/expr_gram.gen.$(OBJEXT) \
		common/sub/expr_lex.$(OBJEXT) common/sub/ident.$(OBJEXT) \
		common/sub/left.$(OBJEXT) common/sub/length.$(OBJEXT) \
		common/sub/plural.$(OBJEXT) \
		common/sub/progname.$(OBJEXT) common/sub/right.$(OBJEXT) \
		common/sub/upcase.$(OBJEXT) \
		common/sub/zero_pad.$(OBJEXT) common/trace.$(OBJEXT) \
		common/undo.$(OBJEXT) common/version.$(OBJEXT) \
		common/version_stmp.$(OBJEXT) common/wstr.$(OBJEXT) \
		common/wstr_list.$(OBJEXT)

TestFiles = t0001a t0002a t0003a t0004a t0005a t0006a t0007a t0008a \
		t0009a t0010a t0011a t0012a t0013a t0014a t0015a t0016a \
		t0017a t0018a t0019a t0020a t0021a t0022a t0023a t0024a \
		t0025a t0026a t0027a t0028a t0029a t0030a

install-man: $(mandir)/man1/fcomp.1 $(mandir)/man1/fhist.1 \
		$(mandir)/man1/fhist_lic.1 $(mandir)/man1/fmerge.1

install-iman: install-iman-$(HAVE_I18N)

install-iman-yes: $(datadir)/en/man1/fcomp.1 $(datadir)/en/man1/fhist.1 \
		$(datadir)/en/man1/fhist_lic.1 \
		$(datadir)/en/man1/fmerge.1

install-iman-no:

po: po-$(HAVE_I18N)

po-yes: lib/en/LC_MESSAGES/fcomp.mo lib/en/LC_MESSAGES/fhist.mo \
		lib/en/LC_MESSAGES/fmerge.mo

po-no:

install-po: install-po-$(HAVE_I18N)

install-po-yes: $(NLSDIR)/en/LC_MESSAGES/fcomp.mo \
		$(NLSDIR)/en/LC_MESSAGES/fhist.mo \
		$(NLSDIR)/en/LC_MESSAGES/fmerge.mo

install-po-no:

doc: doc-$(HAVE_GROFF)

doc-yes: lib/en/building.ps lib/en/building.dvi lib/en/building.txt \
		lib/en/readme.ps lib/en/readme.dvi lib/en/readme.txt \
		lib/en/reference.ps lib/en/reference.dvi \
		lib/en/reference.txt

doc-no:

install-doc: install-doc-$(HAVE_GROFF)

install-doc-yes: $(datadir)/en/building.ps $(datadir)/en/building.dvi \
		$(datadir)/en/building.txt $(datadir)/en/readme.ps \
		$(datadir)/en/readme.dvi $(datadir)/en/readme.txt \
		$(datadir)/en/reference.ps $(datadir)/en/reference.dvi \
		$(datadir)/en/reference.txt

install-doc-no:

binaries:  bin/fcomp$(EXEEXT) bin/fhist$(EXEEXT) bin/fmerge$(EXEEXT)

fcomp_files = fcomp/main.$(OBJEXT)

bin/fcomp$(EXEEXT): $(fcomp_files) common/lib.$(LIBEXT) .bin
	$(CC) $(LDFLAGS) -o $@ $(fcomp_files) common/lib.$(LIBEXT) $(LIBS)
	chmod 755 $@

$(bindir)/$(PROGRAM_PREFIX)fcomp$(PROGRAM_SUFFIX)$(EXEEXT): \
		bin/fcomp$(EXEEXT) .bindir
	$(INSTALL_PROGRAM) bin/fcomp$(EXEEXT) $@

fhist_files = fhist/breaks.$(OBJEXT) fhist/diff.$(OBJEXT) \
		fhist/extract.$(OBJEXT) fhist/list.$(OBJEXT) \
		fhist/main.$(OBJEXT) fhist/modlin.$(OBJEXT) \
		fhist/name.$(OBJEXT) fhist/prune.$(OBJEXT) \
		fhist/subroutine.$(OBJEXT) fhist/update.$(OBJEXT)

bin/fhist$(EXEEXT): $(fhist_files) common/lib.$(LIBEXT) .bin
	$(CC) $(LDFLAGS) -o $@ $(fhist_files) common/lib.$(LIBEXT) $(LIBS)
	chmod 755 $@

$(bindir)/$(PROGRAM_PREFIX)fhist$(PROGRAM_SUFFIX)$(EXEEXT): \
		bin/fhist$(EXEEXT) .bindir
	$(INSTALL_PROGRAM) bin/fhist$(EXEEXT) $@

fmerge_files = fmerge/main.$(OBJEXT) fmerge/work.$(OBJEXT)

bin/fmerge$(EXEEXT): $(fmerge_files) common/lib.$(LIBEXT) .bin
	$(CC) $(LDFLAGS) -o $@ $(fmerge_files) common/lib.$(LIBEXT) $(LIBS)
	chmod 755 $@

$(bindir)/$(PROGRAM_PREFIX)fmerge$(PROGRAM_SUFFIX)$(EXEEXT): \
		bin/fmerge$(EXEEXT) .bindir
	$(INSTALL_PROGRAM) bin/fmerge$(EXEEXT) $@

clean-obj:
	rm -f core common/lib.$(LIBEXT) .bin .bindir
	rm -f common/ac/libintl.$(OBJEXT) common/ac/string.$(OBJEXT)
	rm -f common/ac/unistd.$(OBJEXT) common/ac/wchar.$(OBJEXT)
	rm -f common/ac/wctype.$(OBJEXT) common/arglex.$(OBJEXT)
	rm -f common/cmalloc.$(OBJEXT) common/compare.$(OBJEXT)
	rm -f common/env.$(OBJEXT) common/error.$(OBJEXT)
	rm -f common/error_intl.$(OBJEXT) common/fcheck.$(OBJEXT)
	rm -f common/fileio.$(OBJEXT) common/help.$(OBJEXT)
	rm -f common/input.$(OBJEXT) common/input/crlf.$(OBJEXT)
	rm -f common/input/file.$(OBJEXT)
	rm -f common/input/file_text.$(OBJEXT)
	rm -f common/input/hexify.$(OBJEXT)
	rm -f common/input/private.$(OBJEXT)
	rm -f common/input/pushba_trans.$(OBJEXT)
	rm -f common/input/quotprinenco.$(OBJEXT)
	rm -f common/input/stdin.$(OBJEXT) common/isdir.$(OBJEXT)
	rm -f common/language.$(OBJEXT) common/libdir.$(OBJEXT)
	rm -f common/mem.$(OBJEXT) common/mprintf.$(OBJEXT)
	rm -f common/output.$(OBJEXT) common/output/file.$(OBJEXT)
	rm -f common/output/private.$(OBJEXT)
	rm -f common/output/quotprindeco.$(OBJEXT)
	rm -f common/output/stdout.$(OBJEXT) common/page.$(OBJEXT)
	rm -f common/pager.$(OBJEXT) common/progname.$(OBJEXT)
	rm -f common/quit.$(OBJEXT) common/str.$(OBJEXT)
	rm -f common/str_list.$(OBJEXT) common/sub.$(OBJEXT)
	rm -f common/sub/basename.$(OBJEXT) common/sub/date.$(OBJEXT)
	rm -f common/sub/dirname.$(OBJEXT) common/sub/downcase.$(OBJEXT)
	rm -f common/sub/errno.$(OBJEXT) common/sub/expr.$(OBJEXT)
	rm -f common/sub/expr_gram.gen.c common/sub/expr_gram.gen.h
	rm -f common/sub/expr_gram.gen.$(OBJEXT)
	rm -f common/sub/expr_lex.$(OBJEXT) common/sub/ident.$(OBJEXT)
	rm -f common/sub/left.$(OBJEXT) common/sub/length.$(OBJEXT)
	rm -f common/sub/plural.$(OBJEXT) common/sub/progname.$(OBJEXT)
	rm -f common/sub/right.$(OBJEXT) common/sub/upcase.$(OBJEXT)
	rm -f common/sub/zero_pad.$(OBJEXT) common/trace.$(OBJEXT)
	rm -f common/undo.$(OBJEXT) common/version.$(OBJEXT)
	rm -f common/version_stmp.$(OBJEXT) common/wstr.$(OBJEXT)
	rm -f common/wstr_list.$(OBJEXT) fcomp/main.$(OBJEXT)
	rm -f fhist/breaks.$(OBJEXT) fhist/diff.$(OBJEXT)
	rm -f fhist/extract.$(OBJEXT) fhist/list.$(OBJEXT)
	rm -f fhist/main.$(OBJEXT) fhist/modlin.$(OBJEXT)
	rm -f fhist/name.$(OBJEXT) fhist/prune.$(OBJEXT)
	rm -f fhist/subroutine.$(OBJEXT) fhist/update.$(OBJEXT)
	rm -f fmerge/main.$(OBJEXT) fmerge/work.$(OBJEXT)
	rm -f lib/en/LC_MESSAGES/.nlsdir lib/en/.nlsdir lib/.nlsdir
	rm -f lib/en/building.ps lib/en/building.dvi lib/en/building.txt
	rm -f lib/en/man1/.mandir lib/en/.mandir lib/en/man1/.datadir
	rm -f lib/en/.datadir lib/.datadir lib/en/readme.ps
	rm -f lib/en/readme.dvi lib/en/readme.txt lib/en/reference.ps
	rm -f lib/en/reference.dvi lib/en/reference.txt

clean: clean-obj
	rm -f  bin/fcomp$(EXEEXT) bin/fhist$(EXEEXT) bin/fmerge$(EXEEXT)

distclean: clean
	rm -f config.status config.log config.cache Makefile \
		common/config.h etc/libdir-h

common/lib.$(LIBEXT): $(CommonFiles)
	rm -f $@
	ar cq $@ $(CommonFiles)
	$(RANLIB) $@

.bin:
	-mkdir bin
	-@test -d bin && touch $@
	@sleep 1

.bindir:
	-$(INSTALL) -d -m 0755 $(bindir)
	-@test -d $(bindir) && touch $@
	@sleep 1

sure: $(TestFiles)
	@echo Passed All Tests

install: install-bin install-man install-iman install-po install-doc
	@echo Installation Complete

install-bin: $(bindir)/$(PROGRAM_PREFIX)fcomp$(PROGRAM_SUFFIX)$(EXEEXT) \
		$(bindir)/$(PROGRAM_PREFIX)fhist$(PROGRAM_SUFFIX)$(EXEEXT) \
		$(bindir)/$(PROGRAM_PREFIX)fmerge$(PROGRAM_SUFFIX)$(EXEEXT)


syntax highlighted by Code2HTML, v. 0.9.1