diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-17 16:24:23 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-17 16:34:03 -0700 |
| commit | 20002f8d8cee6c6d30c7aa7fbbbad79e4cb82664 (patch) | |
| tree | e3ebb6a9075a4e9d88cad9dea014c860919d6203 /core/file | |
| parent | e2be6f64fab1c78f1dac6edd4df52edff722e441 (diff) | |
Use phony targets for order-only dependencies
Diffstat (limited to 'core/file')
| -rw-r--r-- | core/file/gen.rc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/file/gen.rc b/core/file/gen.rc index 0634fcfa..d6205cd9 100644 --- a/core/file/gen.rc +++ b/core/file/gen.rc @@ -81,6 +81,8 @@ build '$outdir'/magic.mgc magic '|' '$outdir'/$magic_outs let expr s@X.YY@`{echo $version | tr -d .}^@ --\ build '$outdir'/include/magic.h sed '$srcdir'/src/magic.h.in +phony headers include/magic.h + let expr '-e s@__CSECTION__@1@g -e s@__FSECTION__@5@g -e s@__VERSION__@'$version'@g -e s@__MAGIC__@/share/file/magic@g' --\ build '$outdir'/file.1 sed '$srcdir'/doc/file.man @@ -103,7 +105,7 @@ srcs=(\ \ src/fmtcheck.c\ ) { - for(src in $srcs) cc $src '|' '$outdir/include/magic.h' '||' '$builddir/core/zlib/stamp' + for(src in $srcs) cc $src '||' 'phony/$dir/headers' phony/core/zlib/headers ar libmagic.a $srcs.o } |
