(snarfcppopts): New var.

(.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
This commit is contained in:
Thien-Thi Nguyen 2002-03-14 04:11:28 +00:00
commit 49569f6389

View file

@ -3,17 +3,17 @@
## Copyright (C) 2001 Free Software Foundation, Inc.
##
## This file is part of GUILE.
##
##
## GUILE is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2, or
## (at your option) any later version.
##
##
## GUILE is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
##
## You should have received a copy of the GNU General Public
## License along with GUILE; see the file COPYING. If not, write
## to the Free Software Foundation, Inc., 59 Temple Place, Suite
@ -66,9 +66,10 @@ GUILE_SNARF = ../libguile/guile-snarf
MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
SUFFIXES = .x
.c.x:
$(GUILE_SNARF) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
|| { rm $@; false; }
$(GUILE_SNARF) $< $(snarfcppopts)
CLEANFILES = *.x