Fixes for non-srcdir builds: Only include POTFILES from SUBDIRS directories.
authorRichard Jones <rjones@trick.home.annexia.org>
Thu, 16 Jul 2009 18:29:47 +0000 (19:29 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Thu, 16 Jul 2009 18:30:12 +0000 (19:30 +0100)
Makefile.am

index bd52c52..1f6f62e 100644 (file)
@@ -159,10 +159,10 @@ dist-hook:
 # Update the list of translatable files in po/POTFILES.in.
 all-local:
        cd $(srcdir); \
-       find -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
-       grep -v '/blib/' | \
-       grep -v '/capitests/' | \
-       grep -v '/examples/' | \
+       find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
+       grep -v 'perl/blib/' | \
+       grep -v 'capitests/' | \
+       grep -v 'examples/' | \
        grep -v '/guestfs_protocol.c' | \
        grep -v '/rc_protocol.c' | \
        sort | \