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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:24:18+00:00 2026-05-20T16:24:18+00:00

This link mentions wildcards as a way to automatically list the SOURCES and HEADERS

  • 0

This link mentions wildcards as a way to automatically list the SOURCES and HEADERS in the Makefile.am file. It also mentions that some people write external scripts to generate those files.

Do you know of the standard way of automatically including all the *.h *.cpp here, or should I just write my own Perl script to generate them. Do you have such a script already that you use?

PS: I organize the source files in my project according to the following purely-logical separation of directories:

src/dog/woof.h
src/dog/woof.cpp
src/cow/moo.h
src/cow/moo.cpp
  • 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-05-20T16:24:18+00:00Added an answer on May 20, 2026 at 4:24 pm

    Automake won’t add this feature. It makes assumptions that a particular .h or .cpp file is associated with a particular project. That assumption holds for a number of common project layouts and fails for any layout that differs.

    For example, I’ve had projects that were laid out as

    src/module/code
    src/app/code
    src/library/code
    include/headers
    

    built from one central makefile in the root. Other times, I’ve had the same layout built from four makefiles in the appropriate local directories.

    There’s a lot of variability in projects. Some keep public header files mixed with private headers files in the code directories, some keep them separate. Some build shared object libraries, some don’t. Some ship code that’s not SUPPOSED to compile on incompatible platforms.

    To put in a wild card inclusion would actually pose a great risk of limiting the functionality, and for those odd people who do things like ‘file.template.c’ and such it would be fatal.

    If you consider it a flaw of automake, that’s fine; however, it’s one of those flaws that automake embraces as it’s preserved in the effort to make things more flexible. Automake doesn’t impose the “how” you do things, it provides a lot of enabling tools, but it goes out of it’s way to ensure that you aren’t forced into one “method” of laying out or building your code.

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

Sidebar

Related Questions

This link shows you that jQuery uses (new Function(return + data))(); for older browsers,
This link states that all columns that are nullable should be added to the
In this link: http://css-tricks.com/snippets/jquery/jquery-plugin-template/ it has a line of code that says // Add
I noticed that this answer to a question about .Rprofile settings mentions setting two
First some reference: 1st Link 2nd link The first article 1st Link mentions about
According to this link: http://logback.qos.ch/manual/appenders.html (in RollingFileAppender) It seems to me that Logback provides
I have a link that is located inside a content control. This link calls
This link http://ajaxcontroltoolkit.codeplex.com/releases/view/11121#DownloadId=28808 shows a popup on which one has to agree before being
following this link i was able to load and read pixels from a .gif.
Check this link! I am having the hardest time trying to figure out why

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.