Dear all
I am trying to insert a conditional part in a Makefile.am in the following
way :
## 2-dimensions library
libmudfas2d_la_SOURCES = $(MUDSRC)
ifeq ($(CXX),cxx)
libmudfas2d_la_CXXFLAGS = -ptr mudfas2d -DDIM=2
libmudfas2d_la_LDFLAGS = mudfas2d/*.o -version-info 0:0:0
else
libmudfas2d_la_CXXFLAGS = -DDIM=2
libmudfas2d_la_LDFLAGS = -version-info 0:0:0
endif
But when running automake I get
% automake -a -c --include-deps
src/Makefile.am:24: endif without if
src/Makefile.am:31: else without if
src/Makefile.am:34: endif without if
src/Makefile.am:41: else without if
src/Makefile.am:44: endif without if
If I look at Makefile.in, I get
ifeq ($(CXX),cxx)
libmudfas2d_la_CXXFLAGS = -ptr mudfas2d -DDIM=2
libmudfas2d_la_LDFLAGS = mudfas2d/*.o -version-info 0:0:0
libmudfas2d_la_CXXFLAGS = -DDIM=2
libmudfas2d_la_LDFLAGS = -version-info 0:0:0
Does automake not recognise GNU make instructions ?!
Sincerely
Patrick
======================================================================
Patrick Guio
Institute of Physics, University of Oslo
P.O. box 1048, Blindern, N-0316 Oslo
Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
E-mail : [EMAIL PROTECTED]
URL : http://www.fys.uio.no