Insert multiple lines into Makefile.am if condition is true
I am trying to write Makefile.am
where if Makefile.am
will change depending on the result AC_CHECK_PROG
from configure.ac
.
As an example, in configure.ac
:
AC_CHECK_PROG([DEPF90_CHECK],[makedepf90],[yes],[no])
AM_CONDITIONAL([FOUND_MAKEDEPF90], [test "x$DEPF90_CHECK" = xyes])
AM_COND_IF([FOUND_MAKEDEPF90],[a depend rule in makefile.am],[Some other thing in Makefile.am])
So when makedepf90
there is, I want a dependency rule in the Makefile [.am]. The dependency rule in Makefile.am
looks like this:
depend depend.mk:
makedepf90 $(vimtst_SOURCES) >depend.mk
How can i do this?
+3
source to share