unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile-doc-snarf replaced in the Makefile for scwm
@ 2002-09-10 12:34 P Pareit
  2002-09-10 19:10 ` Marius Vollmer
  0 siblings, 1 reply; 3+ messages in thread
From: P Pareit @ 2002-09-10 12:34 UTC (permalink / raw)


Hey,

Sinds newer versions of guile do not provide guile-doc-snarf anymore and after 
the comments in guile-user I came up with the following solution:

This is the offending code in the original makefile:

.c.x:
	guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
	|| { rm $@; false; }
.cc.x:
	guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
	|| { rm $@; false; }
.c.doc:
	guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > /dev/null \
        || { rm $@; false; }

An this is what I changed it to:

.c.x:
	guile-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
	|| { rm $@; false; }
.cc.x:
	guile-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
	|| { rm $@; false; }

Rational:

The documentation says to use guile-snarf to generate the .x files that gets 
included in the initializing functions.
This is because guile-doc-snarf used to first generate the documentation and 
then called guile-snarf, and so did the work of guile-snarf (see node Doc 
Snarfing in info).
For the .c.doc rule I was suggested to use guile-tools c2doc, but my 
installation did not include c2doc and I also did not find documentation for 
it. And the rule does not get used so I throw it out.

I also think it is not needed to remove the generated files if guile-snarf 
fails as guile-snarf will do when given file to output , so I could even 
change this to:

.c.x:
	guile-snarf $< -o $@ $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
.cc.x:
	guile-snarf $< -o $@ $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<

If someone could confirm I'm right? This way I can start changing autogen.sh 
for scwm and send in a patch.

pieter;




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-29 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10 12:34 guile-doc-snarf replaced in the Makefile for scwm P Pareit
2002-09-10 19:10 ` Marius Vollmer
2003-01-29 11:35   ` guile-mysql Sergey Dolin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).