## -*- Mode: Makefile -*- ## --------------------------------------------------------------------- ## Makefile.am -- process this file with automake to produce Makefile.in ## ## AutoGen copyright 1992-2007 Bruce Korb ## ## Time-stamp: "2007-07-04 11:37:51 bkorb" ## Author: Bruce Korb ## ## This file is part of AutoGen. ## AutoGen copyright (c) 1992-2007 by Bruce Korb - all rights reserved ## ## 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 . ## ## --------------------------------------------------------------------- ## $Id: Makefile.am,v 4.12 2007/07/04 20:51:18 bkorb Exp $ ## --------------------------------------------------------------------- TARG = getdefs bin_PROGRAMS = getdefs gdsrcs = getdefs.h proto.h getdefs.c gdemit.c gdinit.c opts.c getdefs_SOURCES = proto.h nodist_getdefs_SOURCES = gd.c opts.h SUBDIRS = test BUILT_SOURCES = opts.c opts.h gd.c EXTRA_DIST = opts.def $(gdsrcs) ## RUNAG = valgrind $(AGexe) RUNAG = $(AGexe) AGEXE_LIB = $(RUNAG) -L$(top_srcdir)/autoopts getdefs_LDADD = $(top_builddir)/autoopts/libopts.la man_MANS = $(TARG).1 DOCFILES = $(TARG).texi $(TARG).menu $(TARG).1 DISTCLEANFILES = $(DOCFILES) $(nodist_getdefs_SOURCES) *-stamp INCLUDES = @INCLIST@ AG_ENV = top_builddir=$(top_builddir) \ top_srcdir=$(top_srcdir) PATH=`cd ../columns >/dev/null && pwd`:$$PATH ; \ export top_builddir top_srcdir PATH all : gen gen : $(BUILT_SOURCES) $(DOCFILES) opts.c $(getdefs_OBJECTS) : opts.h gd.c : $(gdsrcs) ( echo '#define DEFINE' ; \ for f in $(gdsrcs) ; do echo "#include \"$$f\"" ; done ) > $@ opts.h : opts.def $(CLexe) $(AGexe) $(AG_ENV) ; $(AGEXE_LIB) $(srcdir)/opts.def $(DOCFILES) : doc-stamp $(AGexe) : @cd ../agen5 ; $(MAKE) $(AGnam) $(CLexe) : @cd ../columns ; $(MAKE) $(CLnam) doc-stamp : opts.def $(CLexe) $(TARG)$(EXEEXT) $(AGexe) $(AG_ENV) ; $(AGEXE_LIB) -b$(TARG) -Tagman1 $(srcdir)/opts.def ; \ $(AGEXE_LIB) -b$(TARG) -Taginfo -DLEVEL=section $(srcdir)/opts.def @touch $@ .NOTPARALLEL: # Makefile.am ends here