Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:02:37+00:00 2026-06-12T14:02:37+00:00

I am working on the Makefile someone else in my lab wrote, and I

  • 0

I am working on the Makefile someone else in my lab wrote, and I see a command called true in some rules:

other_rule_A: YYY force_it
          ....
other_rule_B: XXX force_it
          ....

force_it:
          true

What does true mean here? Is it a command run by the subshell? What would happen if I replace it by false? Is true a binary invoked by the shell?

For reference, I found this other question in Stackoverflow: Why do makefiles sometimes have ‘true ‘ as part of the build script?, but I don’t think command is related to the command they cover in that thread.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:02:38+00:00Added an answer on June 12, 2026 at 2:02 pm

    true is a command (usually the executable /bin/true, but often also a shell builtin) that does nothing and returns success. If you were to replace it with false, the force_it: rule would always fail and thus stop the make process at that point.

    The difference between having this true action and having a force_it: rule with no action is that with no action, there might be some other force_it: rule with actions added elsewhere in the makefile. With a true action, you know that there can be no other action — if another action was added, you’d get a make error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on using a Makefile to help perform build steps for my JS
Working under linux for our developement, I have an Eclipse Makefile C Project and
I've started working with my first makefile. I'm writing a roguelike in C++ using
I am working on Solaris 10, Sun Studio 11. I am refactoring some old
I'm trying to produce some graphs using GNUplot with a makefile. I would like
I'm working on OSGI bundle which uses Java native interface. I use this makefile
The following Makefile is not working and I am not sure what's going on.
I've got the following Makefile: #runs the working directory unit tests test: @NODE_ENV=test; \
I'm working on a project. The makefile is very complex as it includes multiple
I am working on a Makefile auto-generating software ( CodeMate ), and I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.