And I really though it would be impossible! Thanks for the tips, and the solution really works, I'm still surprised that I didnt think of it... so simple now that you mention it..
Daniel Shane > foreach, subst, and include are not portable, so I suggest you > take all these rules out of your Makefile.am. > > Intead, you can create a file called GNUmakefile and fill it > with all the above rules, plus `include Makefile'. > > This way if a user runs GNU make all the rules from GNUmakefile > and Makefile will be used, otherwise only Makefile will be read. > > (Projects like fileutils, textutils, shellutils, autoconf, > and bison, use a similar setup.) > -- > Alexandre Duret-Lutz >