* modules/sys_time (Makefile.am): Build sys/time.h only when it's the
[gnulib.git] / modules / sys_time
index 80be27d..006b7af 100644 (file)
@@ -13,7 +13,7 @@ gl_HEADER_SYS_TIME_H
 AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += sys/time.h
+BUILT_SOURCES += $(SYS_TIME_H)
 
 # We need the following in order to create <sys/time.h> when the system
 # doesn't have one that works with the given compiler.
@@ -28,7 +28,7 @@ sys/time.h: sys_time_.h
              < $(srcdir)/sys_time_.h; \
        } > $@-t
        mv $@-t $@
-MOSTLYCLEANFILES += sys/time.h sys/time.h-t
+MOSTLYCLEANFILES += $(SYS_TIME_H) sys/time.h-t
 
 Include:
 #include <sys/time.h>