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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:44:57+00:00 2026-05-28T02:44:57+00:00

Sorry about the confusing title, I had a hard time describing the problem. I

  • 0

Sorry about the confusing title, I had a hard time describing the problem.

I have two values available to me, the first one is a constant and the second one could be any number of folder levels

BASE = application/classes
FOLDERS = types/ads

Based on those, I need to run commands like the following (in that order):

verifyDir application/classes
verifyDir application/classes/types
verifyDir application/classes/types/ads

I could also just pass all the directories to verifyDir if that’s easier

verifyDir application/classes application/classes/types application/classes/types/ads

This is within a makefile, so using gmake’s functions is acceptable.

Please don’t answer with a suggestion to restructure what I am doing. It would take way too long to explain why I need this.

  • 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-28T02:44:58+00:00Added an answer on May 28, 2026 at 2:44 am

    I’m not a gmake master, so I can just propose a way how to achieve that using shell, may be it helps you to achieve that in gnu make…

    BASE=application/classes
    FOLDERS=types/ads
    
    verifyDir $BASE
    NEWBASE=$BASE
    for c in `echo $FOLDERS | tr "/" " "`; do
        NEWBASE="$NEWBASE/$c"
        verifyDir $NEWBASE
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry about the confusing title. Are there any web IDEs available that can be
Sorry about that confusing title :) I have a resource, ComatosePage (used in the
Well, sorry about the confusing title but I'm having a slightly annoying problem with
Sorry about the extremely vague question title (any suggestions for improvements welcome) I have
Sorry about the wording for my question title. I have a basic HTML anchor
I'm sorry about the naive question. I have the following: public Array Values {
First of all, sorry about that title. I'm not the best at writing those
Not sure how to go about this... But, I have two arrays, one with
Sorry for the confusing title of the question. I am uncertain about how should
Sorry if the title is confusing. I have several string expressions in an array

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.