btrfs-progs: build: generate all dependency files
authorNaohiro Aota <naohiro.aota@wdc.com>
Thu, 14 Sep 2017 10:10:46 +0000 (19:10 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Sep 2017 13:17:42 +0000 (15:17 +0200)
commitfd8c78a47c2448891db57c867b0f16c4367fa501
treeb72506d81e43a1ac2c65867c842dd98958444fc7
parentf7267bc85c6d89d64b534b737c63cf8f88c46d7f
btrfs-progs: build: generate all dependency files

We're missing several dependency files like:

$ diff -u <(find -name '*.o'|cut -d. -f2|sort) <(find -name '*.o.d'|cut -d. -f2|sort)
@@ -3,7 +3,6 @@
 /btrfs-corrupt-block
 /btrfs-debug-tree
 /btrfs-find-root
-/btrfs-list
 /btrfs-map-logical
 /btrfs-select-super
 /btrfstune
@@ -29,11 +28,6 @@
 /cmds-scrub
 /cmds-send
 /cmds-subvolume
-/convert/common
-/convert/main
-/convert/source-ext2
-/convert/source-fs
-/convert/source-reiserfs
 /ctree
 /dir-item
 /disk-io
<snip>

This is due to moving things out of objects and cmds_objects variables. Such
missing dependency files cause mis-building of some source files (try touch
utils.h; make mkfs/main.o).

This patch introduce a new variable "all_objects" to keep all the objects and
use the variable to generate proper dependency file building rules.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Makefile