Merge from coreutils.
[gnulib.git] / modules / alloca
index dab7d00..f93d5e3 100644 (file)
@@ -7,20 +7,20 @@ lib/alloca.c
 m4/alloca.m4
 
 Depends-on:
-xalloc
 
 configure.ac:
 gl_FUNC_ALLOCA
 
 Makefile.am:
+BUILT_SOURCES += $(ALLOCA_H)
 EXTRA_DIST += alloca_.h
 
 # We need the following in order to create an <alloca.h> when the system
 # doesn't have one that works with the given compiler.
-all-local $(lib_OBJECTS): @ALLOCA_H@
+all-local $(lib_OBJECTS): $(ALLOCA_H)
 alloca.h: alloca_.h
-       cp $(srcdir)/alloca_.h alloca.h-t
-       mv alloca.h-t alloca.h
+       cp $(srcdir)/alloca_.h $@-t
+       mv $@-t $@
 MOSTLYCLEANFILES += alloca.h alloca.h-t
 
 Include:
@@ -28,4 +28,3 @@ Include:
 
 Maintainer:
 bug-gnulib@gnu.org
-