From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32293 invoked by alias); 31 Aug 2011 22:28:11 -0000 Received: (qmail 32282 invoked by uid 22791); 31 Aug 2011 22:28:11 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Aug 2011 22:27:57 +0000 From: "zbeekman at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/49149] Dependency autogeneration with `-M` rendered useless by requiring .mod files Date: Wed, 31 Aug 2011 22:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zbeekman at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg02592.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49149 --- Comment #8 from Zaak 2011-08-31 22:27:40 UTC --- (In reply to comment #7) > On Wed, Aug 31, 2011 at 10:01:06PM +0000, zbeekman at gmail dot com wrote: > > > > I hope you are less confused now. > > > > I'm not confused. I do, however, use the grey matter > between my ears to write my Makefiles. > > gfortran requires that the *.mod are present to > parse your code. Sorry if you cannot deal with > that fact. I didn't mean any insult, I am not trying to troll or start a flame war. I'm sorry if I offended you in any way. I would appreciate you telling me why you think my makefile is wrong rather than just insulting me. Did you read the link to the GNUmake manpage? Did you try executing the command outside of the makefile? The whole point of having dependency generation capabilities is to do EXACTLY what I'm trying to do. The .mod files are the difficulty resolving Fortran dependencies and I don't see what the use of a tool to resolve dependencies is, if you need to already have those dependencies resolved apriori to use the tool. If you can show me how to write a makefile with pattern rules that will automatically resolve dependencies and uses only brief, terse, pattern rules you will forever be my hero. How would you write a makefile to automatically build fortran codes, and resolve their dependencies without explicitly hand coding the dependencies?