Makefile question

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Tripecac

Established Member
Impact
0
I'm trying to find a way to get rid of the hardcoded subdirectories in this:

albums/aaa/index.html : songs/aaa/*.xml
albums/bbb/index.html : songs/bbb/*.xml
albums/ccc/index.html : songs/ccc/*.xml
etc.

Is there a way to do this?

I tried:

albums/*/index.html : songs/${subst albums/,,$$(@D)}/*.xml

However, the subst function evaluates to blank. It seems like the $$(@D) cannot be used within a function in the prerequisites list.

Any ideas?

Thanks!

Travis
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back