# guile-cairo # Copyright (C) 2007,2011 Andy Wingo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program. If not, see # . moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/cairo objdir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/cairo SOURCES = config.scm vector-types.scm NOCOMP_SOURCES = cairo-procedures.txt GOBJECTS = $(SOURCES:%.scm=%.go) nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) nobase_nodist_obj_DATA = $(GOBJECTS) GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat SUFFIXES = .scm .go .scm.go: $(top_builddir)/env $(GUILD) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<" config.scm: Makefile config.scm.in sed -e "s|@cairolibpath\@|$(libdir)/libguile-cairo|" \ -e "s|@cairodocumentationpath\@|$(moddir)/cairo-procedures.txt|" \ $(srcdir)/config.scm.in > config.scm cairo-procedures.txt.update: echo "Generated from upstream documentation; see COPYING.docs for info." \ > $(srcdir)/cairo-procedures.txt $(top_srcdir)/doc/docbook-to-guile-doc $(CAIRO_XML_DIR)/*.xml \ >> $(srcdir)/cairo-procedures.txt CLEANFILES = config.scm $(GOBJECTS) EXTRA_DIST = config.scm.in