From 440a83f37a0d9a9adc5092dc81f455a6bae0402a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sun, 11 Aug 2024 21:35:45 -0600 Subject: [PATCH] Make the build system work on macOS The original file has extension `.F90`, the generated file changes the extension to `.f90`, which works on Linux. However on macOS due to the case-preserving filesystem it fails. The fix is to rename the generated file, then it works on both Linux and macOS. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index a9753eb..e734747 100644 --- a/src/Makefile +++ b/src/Makefile @@ -173,8 +173,8 @@ translv.o : global.o plib.o geom.o sn.o data.o control.o utils.o \ # Fortran rules # %.o: %.F90 - $(PP) -P $(PPFLAGS) $< >$*.f90 - $(FORTRAN) $(FFLAGS) -c $*.f90 + $(PP) -P $(PPFLAGS) $< >$*.0.f90 + $(FORTRAN) $(FFLAGS) -c $*.0.f90 -o $*.o %.o: %.f90 $(FORTRAN) $(FFLAGS) -c $<