Skip to content

Commit

Permalink
Merge branch 'fix_generated_header_paths' of https://github.com/amibr…
Browse files Browse the repository at this point in the history
…anch/util-linux

* 'fix_generated_header_paths' of https://github.com/amibranch/util-linux:
  meson: fix generated header paths
  • Loading branch information
karelzak committed Aug 22, 2024
2 parents d98a17d + f0497e7 commit 3988f6b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2891,7 +2891,7 @@ endif
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')],
)

Expand Down Expand Up @@ -3223,7 +3223,7 @@ endif
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')],
)

Expand Down
4 changes: 2 additions & 2 deletions misc-utils/Makemodule.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
Expand Down Expand Up @@ -314,7 +314,7 @@ misc-utils/enosys.c: syscalls.h errnos.h

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
Expand Down
3 changes: 2 additions & 1 deletion tools/all_errnos
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set -o pipefail

SED="$1"
shift
OUTPUT=errnos.h
OUTPUT="$1"
shift
ERRNO_INCLUDES="
#include <sys/errno.h>
"
Expand Down
3 changes: 2 additions & 1 deletion tools/all_syscalls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -o pipefail

SED="$1"
shift
OUTPUT=syscalls.h
OUTPUT="$1"
shift
SYSCALL_INCLUDES="
#include <sys/syscall.h>
"
Expand Down

0 comments on commit 3988f6b

Please sign in to comment.