[systemd-devel] [PATCH] build-sys: automake needs to know about generated files

Lennart Poettering lennart at poettering.net
Tue Jul 17 07:32:58 PDT 2012


On Tue, 17.07.12 08:30, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> CC     src/core/libsystemd_core_la-syscall-list.lo
> src/core/syscall-list.c:31:29: fatal error: syscall-to-name.h: No such
> file or directory

Applied both. Thanks!

> ---
>  Makefile.am | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Makefile.am b/Makefile.am
> index b16c01a..d8c7185 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1008,6 +1008,10 @@ CLEANFILES += \
>  	src/core/syscall-from-name.h \
>  	src/core/syscall-to-name.h
>  
> +BUILT_SOURCES += \
> +	src/core/syscall-from-name.h \
> +	src/core/syscall-to-name.h
> +
>  src/core/syscall-list.txt: Makefile
>  	$(AM_V_GEN)cpp -dM -include sys/syscall.h < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9]/ { sub(/__NR_/, "", $$2); print $$2; }' > $@ || rm $@
>  


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list