annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
[pspp] / modules / alloca-opt
index e3043243886812c26572fad12169536b31b1f983..5bd042521f45ed3fc825609a9d256182f9ab5eb0 100644 (file)
@@ -4,7 +4,7 @@ It allows using the alloca() macro if and only if the autoconf tests define
 HAVE_ALLOCA.
 
 Files:
-lib/alloca_.h
+lib/alloca.in.h
 m4/alloca.m4
 
 Depends-on:
@@ -17,10 +17,11 @@ BUILT_SOURCES += $(ALLOCA_H)
 
 # We need the following in order to create <alloca.h> when the system
 # doesn't have one that works with the given compiler.
-alloca.h: alloca_.h
+alloca.h: alloca.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         cat $(srcdir)/alloca_.h; \
-       } > $@-t
+         cat $(srcdir)/alloca.in.h; \
+       } > $@-t && \
        mv -f $@-t $@
 MOSTLYCLEANFILES += alloca.h alloca.h-t