This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47495] .mod files: File modification time - Makefile build issue
- From: "Joost.VandeVondele at pci dot uzh.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 16:52:12 +0000
- Subject: [Bug fortran/47495] .mod files: File modification time - Makefile build issue
- Auto-submitted: auto-generated
- References: <bug-47495-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47495
--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2011-01-27 16:52:07 UTC ---
Not sure if that solves the issue, but CP2K uses these rules:
%.o: %.F
$(FC) -c $(FCFLAGS) $<
%.mod: %.o
@true
with these style dependencies:
ai_coulomb_test.o ai_coulomb_test.mod : ai_coulomb_test.F cp_common_uses.h
cp_error_handling.mod cp_log_handling.mod physcon.mod ....
so faking that .mod is made up to date by having an up to date .o.