diff options
| author | Michael Forney <mforney@mforney.org> | 2016-11-19 18:11:12 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-11-20 16:14:20 -0800 |
| commit | de4e4c63378c6fd0dc2504ddce5a13ee1e62504a (patch) | |
| tree | 996c7ca19cea166be6b0f1cb2fa364c4e96d3e69 /core/util-linux | |
| parent | cd820c03fc5b00354fa5a444216726fc46a22a5d (diff) | |
Drop phony/ prefix from phony targets
There is little chance of collision between phony target names and actual
sources checked in $dir. Additionally, it was a bit magical when processing
phony sources because paths starting with $ or phony/ were left alone, while
others were prepended with $outdir/.
Also, where appropriate, use phony targets for dependencies instead of
specifying all of them for every compile action. This makes the resulting ninja
files easier to read, and might be more efficient too.
Diffstat (limited to 'core/util-linux')
| -rw-r--r-- | core/util-linux/gen.rc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/util-linux/gen.rc b/core/util-linux/gen.rc index 220a4637..d69ca256 100644 --- a/core/util-linux/gen.rc +++ b/core/util-linux/gen.rc @@ -15,7 +15,7 @@ build '$outdir'/libfdisk.h sed '$srcdir'/libfdisk/src/libfdisk.h.in ; expr=(\ -e /@LIBFDISK_PATCH_VERSION@/d\ ) with expr $"expr -phony deps libsmartcols.h libfdisk.h +phony deps '$outdir'/^(libsmartcols.h libfdisk.h) lib libcommon.a lib/^(\ blkdev.c\ @@ -98,7 +98,7 @@ lib libuuid.a libuuid/src/^(\ uuid_time.c\ ) -exe fdisk -d 'phony/$dir/deps' \ +exe fdisk -d '$dir'/deps\ disk-utils/^(fdisk.c fdisk-menu.c fdisk-list.c)\ libfdisk.a.d libsmartcols.a libtcolors.a file bin/fdisk '$outdir'/fdisk 755 |
