I am trying to set an if test for a specific file in my Makefile to compile it with different flags:
.f90.o:
ifeq ($<,main.f90)
@echo ok $<
$(F90) -c $< -o $@
else
@echo nope $<
$(F90) $(F90FLAGS) $(DEBUG) $(INCL) -c $< -o $@
endif
..and despite my efforts I am getting only:
nope main.f90
mpif90 -O2 -g -fbacktrace -fPIC -c main.f90 -o main.o