docs: exclude more generated sources from C_SOURCE_FILES

Exclude more files from the documented sources in C_SOURCE_FILES:
- sources generated by XDR definitions
- sources generated by gperf
- errnostring.c (generated by the generator, and copied around from src
  to daemon during build)

Also update C_SOURCE_FILES as well, so libguestfs builds again from
scratch.
This commit is contained in:
Pino Toscano
2016-04-14 13:12:31 +02:00
parent 47aa64aec9
commit 3cc039bf17
2 changed files with 3 additions and 8 deletions

View File

@@ -294,6 +294,9 @@ dist-hook:
find $(DIST_SUBDIRS) -name '*.c' | \
grep -v -E '^(builder/index-parse.c|builder/index-scan.c|examples/|gnulib/|gobject/|perl/|tests/|test-data/)' | \
grep -v -E '/((guestfs|rc)_protocol\.c)$$' | \
grep -v -E '.*/errnostring\.c$$' | \
grep -v -E '.*-gperf\.c$$' | \
LC_ALL=C sort > docs/C_SOURCE_FILES
cd $(srcdir); \

View File

@@ -40,8 +40,6 @@ daemon/dmesg.c
daemon/dropcaches.c
daemon/du.c
daemon/echo-daemon.c
daemon/errnostring-gperf.c
daemon/errnostring.c
daemon/ext2.c
daemon/fallocate.c
daemon/file.c
@@ -55,7 +53,6 @@ daemon/fstrim.c
daemon/glob.c
daemon/grep.c
daemon/grub.c
daemon/guestfs_protocol.c
daemon/guestfsd.c
daemon/headtail.c
daemon/hexdump.c
@@ -129,7 +126,6 @@ edit/edit.c
erlang/erl-guestfs-proto.c
erlang/erl-guestfs.c
fish/alloc.c
fish/cmds-gperf.c
fish/cmds.c
fish/completion.c
fish/config.c
@@ -161,7 +157,6 @@ fish/prep.c
fish/prepopts.c
fish/progress.c
fish/rc.c
fish/rc_protocol.c
fish/reopen.c
fish/setenv.c
fish/supported.c
@@ -226,15 +221,12 @@ src/copy-in-out.c
src/create.c
src/dbdump.c
src/drives.c
src/errnostring-gperf.c
src/errnostring.c
src/errors.c
src/event-string.c
src/events.c
src/file.c
src/filearch.c
src/fuse.c
src/guestfs_protocol.c
src/guid.c
src/handle.c
src/info.c