gnulib-tool.py: Don't continue creating testdirs when destdir exists.
[gnulib.git] / modules / sys_times
blob6a4a092963eaf66f6bbd65bdfe21b8a02407c445
1 Description:
2 A <sys/times.h> for systems lacking it.
4 Files:
5 lib/sys_times.in.h
6 m4/sys_times_h.m4
8 Depends-on:
9 gen-header
10 include_next
11 snippet/arg-nonnull
12 snippet/warn-on-use
14 configure.ac:
15 gl_SYS_TIMES_H
16 gl_SYS_TIMES_H_REQUIRE_DEFAULTS
17 AC_PROG_MKDIR_P
19 Makefile.am:
20 BUILT_SOURCES += sys/times.h
22 # We need the following in order to create <sys/times.h> when the system
23 # doesn't have one that works with the given compiler.
24 sys/times.h: sys_times.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25         $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
26         $(AM_V_at)$(SED_HEADER_STDOUT) \
27               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28               -e 's/@''HAVE_SYS_TIMES_H''@/$(HAVE_SYS_TIMES_H)/g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_SYS_TIMES_H''@|$(NEXT_SYS_TIMES_H)|g' \
33               -e 's/@''GNULIB_TIMES''@/$(GNULIB_TIMES)/g' \
34               -e 's|@''HAVE_STRUCT_TMS''@|$(HAVE_STRUCT_TMS)|g' \
35               -e 's|@''HAVE_TIMES''@|$(HAVE_TIMES)|g' \
36               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
37               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
38               $(srcdir)/sys_times.in.h > $@-t
39         $(AM_V_at)mv $@-t $@
40 MOSTLYCLEANFILES += sys/times.h sys/times.h-t
41 MOSTLYCLEANDIRS += sys
43 Include:
44 <sys/times.h>
46 License:
47 LGPLv2+
49 Maintainer:
50 Simon Josefsson