fix libgfortran maintainer-mode

Richard Henderson rth@twiddle.net
Mon Dec 6 21:31:00 GMT 2004


In order for these patterns to be useful, we have to put the 
output in the right place.  Committed.


r~


        * Makefile.am: Generate all m4 output under $(srcdir).
        * Makefile.in: Regenerate.

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/Makefile.am,v
retrieving revision 1.25
diff -u -p -u -r1.25 Makefile.am
--- Makefile.am	2 Dec 2004 04:10:25 -0000	1.25
+++ Makefile.am	6 Dec 2004 21:28:49 -0000
@@ -408,108 +408,107 @@ selected_real_kind.inc: $(srcdir)/mk-srk
 
 if MAINTAINER_MODE
 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $(srcdir)/$@
 
 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $(srcdir)/$@
 
 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $(srcdir)/$@
 
 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
-	m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $(srcdir)/$@
 
 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $(srcdir)/$@
 
 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $(srcdir)/$@
 
 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
-	m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $(srcdir)/$@
 
 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $(srcdir)/$@
 
 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $(srcdir)/$@
 
 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $(srcdir)/$@
 
 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
-	m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $(srcdir)/$@
 
 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $(srcdir)/$@
 
 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $(srcdir)/$@
 
 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $(srcdir)/$@
 
 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $(srcdir)/$@
 
 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $(srcdir)/$@
 
 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $(srcdir)/$@
 
 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $(srcdir)/$@
 
 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $(srcdir)/$@
 
 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $(srcdir)/$@
 
 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $(srcdir)/$@
 
 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $(srcdir)/$@
 
 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $(srcdir)/$@
 
 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $(srcdir)/$@
 
 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $(srcdir)/$@
 
 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $(srcdir)/$@
 
 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $(srcdir)/$@
 
 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $(srcdir)/$@
 
 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
-	m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $(srcdir)/$@
 
 $(gfor_math_trig_c): m4/ctrig.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $(srcdir)/$@
 
 $(gfor_math_exp_c): m4/cexp.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $(srcdir)/$@
 
 $(gfor_math_hyp_c): m4/chyp.m4 m4/mtype.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $(srcdir)/$@
 
 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $(srcdir)/$@
 
 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
-	m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $@
+	m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $(srcdir)/$@
 ## end of maintainer mode only rules
 endif
 
 EXTRA_DIST = $(m4_files)
-



More information about the Fortran mailing list