Mail Archives: djgpp/1996/09/25/08:02:09
> In general, this is the whole purpose of auto-configuration tools, such
> as GNU Autoconf. However, I doubt that you could easily implement such a
> beast on MSDOS, at least not as a general-purpose program. So, in this
> case, I suggest something like that:
I see your point. At least this way I could control the compile from the
makefile, and even provide a default.
Since we are already at it, I'd like to ask another question: I tried
something on my makefile which I took from your makefile in the faq
sources ;) :
ifdef COMSPEC
DOS blah
else
other bla
endif
This code does not work on the AIX, but does with make on my PC. It more
or less "separator character needed on line x" and aborts. Looking at the
manpage I found no reference on 'ifdef'. Is there a way to make this work
on other versions of make? (perhaps ifdef can only be used on GNU make?)
The only solution I find to this problem is to use eg.
RM = del
and
clean:
$(RM) something.tmp
Alex.
--
Grobbl. Noggl ARGH! ARGH! Gabbl. Nagga Frk'Tkl Kpfzt. alex AT zool DOT unizh DOT ch.
Znamifktzgck. A. Schroeder, Buelachstr. 1c, CH-8057 Zuerich, Switzerland.
- Raw text -