[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xmkmf generates bad Makefiles



Would someone please be so kind to comment on this?  Thank you!
 Andy.

| 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: Andy@spiegl.de     URL: http://www.spiegl.de
 Finger pgp.andy@spiegl.de for my PGP key
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply to: