## -*- Mode: Makefile -*-
##
## Makefile.am -- process this file with automake to produce Makefile.in
##
## Copyright (C) 1992-2015 by Bruce Korb
##
## This file is part of AutoGen.
##
## AutoGen 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 3 of the License, or
## (at your option) any later version.
##
## AutoGen 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, see <http://www.gnu.org/licenses/>.
bin_PROGRAMS = columns
csrc = opts.h columns.c opts.c
nodist_columns_SOURCES = cols.c
LO_LIB = $(top_builddir)/autoopts/libopts.la
columns_LDADD = $(LO_LIB) $(GUILE_LIBS)
BUILT_SOURCES = columns.menu columns.texi columns.1
EXTRA_DIST = opts.def $(csrc)
RUNAG = $(AGexe) -L$(top_srcdir)/autoopts/tpl \
-L$(top_builddir)/autoopts/tpl -MF$@
man_MANS = columns.1
AM_CPPFLAGS = @INCLIST@
CONFIG_CLEAN_FILES = $(BUILT_SOURCES) stamp-*
MAINTAINERCLEANFILES = $(CONFIG_CLEAN_FILES)
DISTCLEANFILES = cols.c
DOC_TIMEOUT = -DLEVEL=section --timeout=`expr $(AG_TIMEOUT) '*' 3`
gen : $(BUILT_SOURCES)
all : gen
## opts.h cannot be built until columns is built, so no rules for it.
columns.menu columns.texi : stamp-agtexi
columns.1 : stamp-agman
cols.c : Makefile
exec > $@ ; \
echo '#undef PKGDATADIR' ; \
echo '#define PKGDATADIR "$(pkgdatadir)"' ; \
echo ; echo '#define DEFINING 1' ; \
echo '#include "autoopts/project.h"' ; \
for f in $(csrc) ; do echo "#include \"$$f\"" ; done
stamp-agtexi : opts.def columns$(EXEEXT)
top_builddir=$(top_builddir) \
$(RUNAG) -Tagtexi-cmd.tpl $(DOC_TIMEOUT) $(srcdir)/opts.def
stamp-agman : opts.def columns$(EXEEXT)
top_builddir=$(top_builddir) \
$(RUNAG) -Tagman-cmd.tpl $(srcdir)/opts.def
.NOTPARALLEL:
# end of Makefile.am