errnos_h = custom_target('errnos.h',
input : 'tools/all_errnos',
output : 'errnos.h',
- command : ['tools/all_errnos', sed.full_path(),
+ command : ['tools/all_errnos', sed.full_path(), '@OUTPUT@',
cc.cmd_array(), get_option('c_args')],
)
syscalls_h = custom_target('syscalls.h',
input : 'tools/all_syscalls',
output : 'syscalls.h',
- command : ['tools/all_syscalls', sed.full_path(),
+ command : ['tools/all_syscalls', sed.full_path(), '@OUTPUT@',
cc.cmd_array(), get_option('c_args')],
)
errnos.h: $(top_srcdir)/tools/all_errnos
@echo ' GEN $@'
- @$(top_srcdir)/tools/all_errnos "$(SED)" $(CC) $(CFLAGS)
+ @$(top_srcdir)/tools/all_errnos "$(SED)" "$@" $(CC) $(CFLAGS)
-include errnos.h.deps
CLEANFILES += errnos.h errnos.h.deps
syscalls.h: $(top_srcdir)/tools/all_syscalls
@echo ' GEN $@'
- @$(top_srcdir)/tools/all_syscalls "$(SED)" $(CC) $(CFLAGS)
+ @$(top_srcdir)/tools/all_syscalls "$(SED)" "$@" $(CC) $(CFLAGS)
-include syscalls.h.deps
CLEANFILES += syscalls.h syscalls.h.deps