summaryrefslogtreecommitdiff
path: root/modules/sys_ioctl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sys_ioctl')
-rw-r--r--modules/sys_ioctl10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/sys_ioctl b/modules/sys_ioctl
index 83db3046ae..cf99b56252 100644
--- a/modules/sys_ioctl
+++ b/modules/sys_ioctl
@@ -6,6 +6,7 @@ lib/sys_ioctl.in.h
m4/sys_ioctl_h.m4
Depends-on:
+gen-header
include_next
snippet/c++defs
snippet/warn-on-use
@@ -23,8 +24,8 @@ BUILT_SOURCES += sys/ioctl.h
# does not have a complete one.
sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
$(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
- $(AM_V_at){ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
- sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+ $(AM_V_at)$(SED_HEADER_STDOUT) \
+ -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
@@ -36,9 +37,8 @@ sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON
-e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
- < $(srcdir)/sys_ioctl.in.h; \
- } > $@-t && \
- mv $@-t $@
+ $(srcdir)/sys_ioctl.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
MOSTLYCLEANDIRS += sys