# -*- Mode: Makefile -*-
#
# Makefile.am - top level automake file for Redland
#
# $Id: Makefile.am,v 1.120 2003/08/24 23:35:12 cmdjb Exp $
#
# Copyright (C) 2000-2003 David Beckett - http://purl.org/net/dajobe/
# Institute for Learning and Research Technology - http://www.ilrt.org/
# University of Bristol - http://www.bristol.ac.uk/
# 
# This package is Free Software or Open Source available under the
# following licenses (these are alternatives):
#   1. GNU Lesser General Public License (LGPL)
#   2. GNU General Public License (GPL)
#   3. Mozilla Public License (MPL)
# 
# See LICENSE.html or LICENSE.txt at the top of this package for the
# full license terms.
# 
# 

bin_SCRIPTS = redland-config
noinst_SCRIPTS = redland-src-config

man_MANS = redland-config.1

# Subdirectories to build/install etc.
SUBDIRS=raptor librdf examples utils demos @SD@
CONFIG_SUBDIRS=raptor
# Subdirectories to use for distribution
DIST_SUBDIRS=librdf docs examples \
perl php python tcl java ruby csharp \
raptor \
utils demos

EXTRA_DIST=ChangeLog \
README      NEWS      LICENSE.txt  \
README.html NEWS.html LICENSE.html \
TODO.html RELEASE.html INSTALL.html FAQS.html \
MPL.html \
Redland.i \
autogen.sh \
Makefile.PL \
redland-config.in \
redland-src-config.in \
$(man_MANS)

# Create some text files from HTML sources
LYNX=lynx
HTML_TO_TEXT=TERM=vt100 $(LYNX) -dump -nolist

SUFFIXES = .html .txt

.html.txt:
	$(HTML_TO_TEXT) $< > $@

README: README.html
	$(HTML_TO_TEXT) $< > $@

NEWS: NEWS.html
	$(HTML_TO_TEXT) $< > $@

@SET_MAKE@
