* lib/string_.h: If the gnulib module XYZ is not present, undefine
[gnulib.git] / modules / argz
index c8729ec..30b474f 100644 (file)
@@ -13,14 +13,14 @@ gl_FUNC_ARGZ
 
 Makefile.am:
 BUILT_SOURCES += $(ARGZ_H)
-EXTRA_DIST += argz_.h
 
-# We need the following in order to create an <argz.h> when the system
+# We need the following in order to create <argz.h> when the system
 # doesn't have one that works with the given compiler.
-all-local $(lib_OBJECTS): $(ARGZ_H)
 argz.h: argz_.h
-       cp $(srcdir)/argz_.h $@-t
-       mv $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/argz_.h; \
+       } > $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += argz.h argz.h-t
 
 Include: