Commit 68a8e4a1 authored by thomas.forbriger's avatar thomas.forbriger

[WP][FIX] (gremlin,grrefsub): fix Fortran dependency files

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

dependency files must contain object files as targets in order to be effective
parent 05785994
......@@ -92,6 +92,8 @@ clean:
flist: $(wildcard *.f *.inc) Makefile COPYING README
echo $^ | tr ' ' '\n' | sort > $@
echo "----" >> $@
echo $(TF_EDIT) | tr ' ' '\n' | sort >> $@
.PHONY: edit
edit: flist; vim $<
......@@ -110,7 +112,8 @@ libgrrefsub.doc: gr_refsub.f
#----------------------------------------------------------------------
%.d: %.f
echo $<: $(shell cat $< | egrep '^ +include' | cut -f 2 -d \' | sort | uniq) > $@
echo $< $(patsubst %.f,%.o,$<): \
$(shell cat $< | egrep '^ +include' | cut -f 2 -d \' | sort | uniq) > $@
include $(patsubst %.f,%.d,$(wildcard *.f))
%.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment