xmkmf generates bad Makefiles
Hi!
whenever I do a xmkmf to get a Makefile from an Imakefile I have
to do manual editing of the Makefile before I can use it. All the
comment lines start with
XCOMM
instead of
#
I don't have this problem at other unix machines (at work), so I
suppose it could be a debian misconfiguration. Also, I found a
reference to this problem in /usr/X11R6/lib/X11/config/Imake.rules:
/*
* Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM
* to cpp, because that trick does not work on all ANSI C preprocessors.
* Also delete line numbers from the cpp output (-P is not portable, I guess).
*/
#ifndef CppSedMagic
#define CppSedMagic sed -e '/^# *[0-9][0-9]* *.*$$/d' -e '/^XCOMM$$/s//#/' \
-e '/^XCOMM[a-zA-Z0-9_]/s/^XCOMM/#/'
#endif /* CppSedMagic */
But I have no idea how to make use of this. Anyone?
Thanks,
Andy.
--
Andy Spiegl, University of Technology, Muenchen, Germany
E-Mail: spiegl@Appl-Math.TU-Muenchen.de OR: Andy.Spiegl@WriteMe.com
URL: http://www.appl-math.tu-muenchen.de/~spiegl
PGP fingerprint: B8 48 24 7B DB 96 6F 1C D9 6D 8E 6C DB C2 E7 E9
o _ _ _
--------- __o __o /\_ _ \\o (_)\__/o (_)
------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/
------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reply to: