dependencies

Daniel Franke franke.daniel@gmail.com
Mon Sep 11 16:06:00 GMT 2006


Janne, Magnus,

thanks for your help. I eventually managed to integrate fortran
dependency tracking into autoconf/automake =)

Regards
    Daniel


For everyone interested (this also works if $builddir != $srcdir):
--configure.[ac|in]--
AC_CHECK_PROG(MAKEDEPF90, [makedepf90], [makedepf90], [not found], [$PATH])
AC_ARG_VAR(MAKEDEPF90, [F90 dependency tracking])
--configure.[ac|in]

-- $srcdir/Makefile.am --
#
# *-local are executed after all subdirs have run,
# include '.' to run *-local prior to anything else
#
SUBDIRS = .

all-local: Makefile.dep

Makefile.dep: $(yourbinary_SOURCES)
	$(MAKEDEPF90) -b "" -I $(srcdir) $^ > $@

clean-local:
	$(RM) *.mod Makefile.dep

-include Makefile.dep
-- Makefile.am --



More information about the Fortran mailing list