tests: fix license on several tests
[gnulib.git] / modules / spawn
index f2d15ab..616cc45 100644 (file)
@@ -8,6 +8,7 @@ m4/spawn_h.m4
 Depends-on:
 include_next
 link-warning
+arg-nonnull
 sched
 
 configure.ac:
@@ -18,8 +19,8 @@ BUILT_SOURCES += $(SPAWN_H)
 
 # We need the following in order to create a replacement for <spawn.h> when
 # the system doesn't have one.
-spawn.h: spawn.in.h
-       rm -f $@-t $@
+spawn.h: spawn.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -49,8 +50,9 @@ spawn.h: spawn.in.h
              -e 's|@''HAVE_POSIX_SPAWN''@|$(HAVE_POSIX_SPAWN)|g' \
              -e 's|@''REPLACE_POSIX_SPAWN''@|$(REPLACE_POSIX_SPAWN)|g' \
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
+             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
              < $(srcdir)/spawn.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv $@-t $@
 MOSTLYCLEANFILES += spawn.h spawn.h-t