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 7886631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:22:04+00:00 2026-06-03T05:22:04+00:00

I am trying to generate a make file in Linux that is fairly dynamic

  • 0

I am trying to generate a make file in Linux that is fairly dynamic and will take get all the files from the /src directory of a certain type. Essentially the output of ls *.type I seem to be having difficulties in doing this. Below is what I currently have but it does not seem to work. Hopefully someone can help me out. Thanks!

JIL_B_TMPL            : sh = ls *.type
JIL_LIST        =       $(JIL_B_TMPL)

I will also add this is not for compiling a C program.

  • 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-03T05:22:06+00:00Added an answer on June 3, 2026 at 5:22 am

    To capture the output of a shell command in a makefile, you can do:

    JIL_B_TMPL := $(shell ls *.type)
    JIL_LIST   := $(JIL_B_TMPL)
    

    This is of course the same as writing:

    JIL_LIST   := $(shell ls *.type)
    

    This works with GNU make, but since you mention Linux, I suppose you’re using that.

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

Sidebar

Related Questions

I am trying to make Doctrine generate SQL from a set of models that
I am trying to generate an xml file of a recipe database that has
I'm trying to create a Makefile that will download and process file a file
Trying to compile gearman on Suse 10 and I get this: #:~/src/gearmand-0.14> sudo make
I'm trying to get the examples from Linux Device Drivers, ed 3 (ldd3) working
Ok, I have a SQL query that I'm trying to generate that will combine
I'm trying to use CMake to build generate the make file for a project
I am trying to generate a URL that contains a UNC path as one
I am trying to generate Java documentation in Eclipse. The source files are UTF-8
I am trying to generate a list of all possible number combinations within a

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.