Package: gfortran
Severity: wishlist

I use to need module dependency information. Since gfortran can not, actually, 
fetch it like C's gcc does with -M, I use the following Makefile rule:

Makefile.dep : *.F95
        for j in *.F95 ; do for i in `cat $$j|grep " use "|awk '{print $$2}'`; 
do echo `basename $$j .F95`.o : $$i.mod ; done ; done > $@

It would be great to have this very simple code included in gfortran like the 
-M option, to be allowed to change the Makefile to something simpler:

Makefile.dep
        for i in *.F95; do gfortran -MM "$${i}"; done > $@

Thanks

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to