| 1 |
# guile-cairo |
| 2 |
# Copyright (C) 2007,2011 Andy Wingo <[email protected]> |
| 3 |
# |
| 4 |
# This program is free software: you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU Lesser General Public License as |
| 6 |
# published by the Free Software Foundation, either version 3 of the |
| 7 |
# License, or (at your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# Lesser General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU Lesser General Public |
| 15 |
# License along with this program. If not, see |
| 16 |
# <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/cairo |
| 19 |
objdir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/cairo |
| 20 |
|
| 21 |
SOURCES = config.scm vector-types.scm |
| 22 |
NOCOMP_SOURCES = cairo-procedures.txt |
| 23 |
|
| 24 |
GOBJECTS = $(SOURCES:%.scm=%.go) |
| 25 |
|
| 26 |
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) |
| 27 |
nobase_nodist_obj_DATA = $(GOBJECTS) |
| 28 |
|
| 29 |
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat |
| 30 |
SUFFIXES = .scm .go |
| 31 |
.scm.go: |
| 32 |
$(top_builddir)/env $(GUILD) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<" |
| 33 |
|
| 34 |
config.scm: Makefile config.scm.in |
| 35 |
sed -e "s|@cairolibpath\@|$(libdir)/libguile-cairo|" \ |
| 36 |
-e "s|@cairodocumentationpath\@|$(moddir)/cairo-procedures.txt|" \ |
| 37 |
$(srcdir)/config.scm.in > config.scm |
| 38 |
|
| 39 |
cairo-procedures.txt.update: |
| 40 |
echo "Generated from upstream documentation; see COPYING.docs for info." \ |
| 41 |
> $(srcdir)/cairo-procedures.txt |
| 42 |
$(top_srcdir)/doc/docbook-to-guile-doc $(CAIRO_XML_DIR)/*.xml \ |
| 43 |
>> $(srcdir)/cairo-procedures.txt |
| 44 |
|
| 45 |
CLEANFILES = config.scm $(GOBJECTS) |
| 46 |
|
| 47 |
EXTRA_DIST = config.scm.in |