materialos / Linux-Icon-Pack

This is a public icon pack that anyone and everyone is invited to contribute to.
Other
41 stars 6 forks source link

Makefile dynamic folder handling #56

Closed crutchcorn closed 8 years ago

crutchcorn commented 8 years ago

I would like to make a script that takes all the numbers of folders and runs the appropriate commands based on that

germanfr commented 8 years ago

Something like this will do the work in this case:

for d in */; do
    #Do whatever with $d as directory
done

But as I don't know how Makefile works I can't add it to the code. I don't want to mess it all.

crutchcorn commented 8 years ago

Exactly @germanfr. I will wait until @ploctaux gets back to help us figure out what we want

deadbaed commented 8 years ago

what do you want?

crutchcorn commented 8 years ago

We want to be able to do something where the number of folders is calculated and then the makefile is updated with that info and changed dynamically. I'll write a demo to showcase my point

crutchcorn commented 8 years ago

An example is made in #59

deadbaed commented 8 years ago

we'll work on that

deadbaed commented 8 years ago

well I think it won't work (my knowledge of makefile is still new) and I think it's better to have it exactly what we want close issue and pr?

crutchcorn commented 8 years ago

Yeah, not possible AFAIK. Closing the issue. Sorry for raising hopes, guys

deadbaed commented 8 years ago

I didn't have any hope XD jk