常にFreeBSD makeを使用して指定されたターゲットを構築します(GNU make -Bフラグと同じ)

常にFreeBSD makeを使用して指定されたターゲットを構築します(GNU make -Bフラグと同じ)

make最新かどうかにかかわらず、FreeBSDが私が指定したターゲットを強制的に実行したいと思います。

私はGNU makeのフラグを使って行うことができることを知っていますが、-BFreeBSD makeのマニュアルページに似たものが見つかりません。

ベストアンサー1

一部のターゲットのみ(常に)必要な場合は、代わりに使用して次のことを確認でき!ます:

target! source
    touch target

試してみると、make target最新バージョンでも動作します。touch targettargetsource

調査する人々はそうです:

FILE DEPENDENCY   SPECIFICATIONS

     Dependency   lines consist of one or more targets, an operator, and zero or
     more sources.  This creates a relationship   where the targets ``depend''
     on   the sources and are usually created from them.  The exact relationship
     between the target   and the source is determined by the operator that sep-
     arates them.  The three operators are as follows:

...

!    Targets are always re-created, but not until all sources have been
     examined and re-created as necessary.  Sources for a target accumu-
     late over dependency lines when this operator is used.  The target
     is removed if make is interrupted.

おすすめ記事