summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-17 08:30:38 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-17 12:22:16 +0200
commitcc9f61b81517655dd8451c96316384f8055d91e3 (patch)
treec136936f4013c4bab8905bbc8e3ed0fdef41817d /Makefile.am
parent8351ceaea9480d9c2979aa2ff0f4982cfdfef58d (diff)
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
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b16c01ae67..d8c7185fe7 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 $@