From: Vincent Bernat Date: Sat, 12 Oct 2013 16:05:06 +0000 (+0200) Subject: seccomp: do not ship `syscall-names.h` X-Git-Tag: 0.7.7~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=246701fe22bd2f2def6816e730b8b46f427c8404;p=thirdparty%2Flldpd.git seccomp: do not ship `syscall-names.h` `syscall-names.h` is generated at build-time. Since automake will put anything in `*_SOURCES` in the dist tarball, we tell it to not do that. --- diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 7e405245..a18878a6 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -7,6 +7,7 @@ dist_man_MANS = lldpd.8 noinst_LTLIBRARIES = liblldpd.la ## Convenience library for lldpd and tests +nodist_liblldpd_la_SOURCES = liblldpd_la_SOURCES = \ frame.h frame.c \ lldp.c lldp-tlv.h \ @@ -99,7 +100,8 @@ syscall-names.h: echo "#include " | cpp -dM | grep '^#define __NR_' | \ LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([0-9]+)(.*)/ [\2] = "\1",/p' >> $@ ;\ echo "};" >> $@ -liblldpd_la_SOURCES += priv-seccomp.c syscall-names.h +nodist_liblldpd_la_SOURCES += syscall-names.h +liblldpd_la_SOURCES += priv-seccomp.c liblldpd_la_CFLAGS += @SECCOMP_CFLAGS@ liblldpd_la_LIBADD += @SECCOMP_LIBS@ endif