Find the answer to your Linux question:
Results 1 to 4 of 4
It seems like .KEEP_STATE is not available in Linux, is there any equivalent option that support the functionality of .KEEP_STATE as described below? ******* Sun OS option ***** .KEEP_STATE: If ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    2

    Makefile command


    It seems like .KEEP_STATE is not available in Linux, is there any equivalent option that support the functionality of .KEEP_STATE as described below?

    ******* Sun OS option *****
    .KEEP_STATE:
    If this target is in effect, make updates the state
    file, .make.state, in the current directory.
    This target also activates command dependencies, and
    hidden dependency checks. If either the .KEEP_STATE:
    target appears in the makefile, or the environment
    variable KEEP_STATE is set ("setenv KEEP_STATE"), make
    will rebuild everything in order to collect dependency
    information, even if all the targets were up to date
    due to previous make runs. See also the ENVIRONMENT
    VARIABLES section. This target has no effect if used
    in POSIX mode.

    ******* Sun OS option *****

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    So it recompiles everything or what? Could you be more specific?

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    2
    With the .KEEP_STATE in the Makefile, if i touch any header (.h) files,
    everything will get re-compiled. However, this syntax is not available
    in Linux, so i am wondering if there is any substitute for this ?

  4. #4
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by hkng
    With the .KEEP_STATE in the Makefile, if i touch any header (.h) files,
    everything will get re-compiled. However, this syntax is not available
    in Linux, so i am wondering if there is any substitute for this ?
    Sounds like it's a hack to pander to those who don't specify their header dependencies fully.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •