From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keisuke Nishida To: Kalle Olavi Niemitalo Cc: guile-emacs@sourceware.cygnus.com Subject: Re: guileapi.x problems [patch] Date: Thu, 16 Mar 2000 08:55:00 -0000 Message-id: References: <87og8hp9n8.fsf@PC486.Niemitalo.LAN> <87u2i7yzy8.fsf@PC486.Niemitalo.LAN> X-SW-Source: 2000-q1/msg00027.html Kalle Olavi Niemitalo writes: > > A suggestion: Redirect output to guileapi.tmp, then rename that file > > to guileapi.x. > > That is what I tried initially, but it didn't work. guileapi.c > #includes guileapi.x and if it doesn't exist, guile-snarf complains. > > Perhaps the #include should be wrapped in #ifndef SCM_MAGIC_SNARFER. > Is guile-snarf guaranteed to keep defining that? This is what guile-snarf does: ## We must use a temporary file here, instead of a pipe, because we ## need to know if CPP exits with a non-zero status. ${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $? And this is how Guile's Makefile call it: .c.x: PATH=.:${PATH} ./guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \ || { rm $@; false; } What would be the best?