From: alex b. <en...@tu...> - 2001-06-30 18:15:37
|
> -- quote -- > Makefiles need standard extensions so as there > are standard rules that can do one thing for one type > of a file and a different thing for another type of a > file. That's why if you write your C application > -- unquote -- > SO: Odysseas needs, er, uniform file extensions to > do his bit in his nascent Makefile system and populate > his > SUFFIXES: > SUFFIXES: .php .xml > stanzas in his Makefiles and make his life easier. Not to make his life easy, to make it possible. It's not necessarily uniformity, it's declaration. We need to explicitly tell make about everything. > -- quote -- > Re: different extensions, I'm willing to entertain them but I prefer to > use > directory structure rather than file extension wherever possible. > -- unquote -- These are not contradictory statements. > SO: Alex wants/needs "information" to be implicit in directory > structure so he can make his life easier with his (still fully unknown) > "package" concept. That is only after build-time, at which point you shouldn't care about directory structure because it's taken care of for you. > But, I want my cake and eat it too! There has to be a way > to accommodate this. I like Adreas' last suggestion to solve > the warty import() "problem". And, waaall, surely Odysseas > can be careful in his Makefiles by doing > > SUFFIXES: > SUFFIXES: .php .xml .mod .layout .master But that doesn't solve the problem effectively. Yes, we could build a huge list, but if we're going to tackle that at all we should do it right, and make it extensible. As far as I can tell that's a type/extension map. > while considering .layout as a .php, for example. Now if > that is accommodated, some other spoiled brat like me > would want .LYT for layout files, .MST for master files. > He could just add them if he correctly edits the Makefile. Again, I would prefer to do that correctly - i.e. have a file which is specifically for that purpose, instead of having variant makes all over the place, so if we make a change all those variant people have to spend a huge amount of time patching, etc. _alex |