build-sys: automake needs to know about generated files

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
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2012-07-17 08:30:38 +02:00 committed by Lennart Poettering
parent 8351ceaea9
commit cc9f61b815

View file

@ -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 $@