# ==========================================================================
# Makefile.am
# ==========================================================================
# Automake makefile template for parseopt documentation.
# --------------------------------------------------------------------------
#   AUTHOR:  Marco Pantaleoni         E-mail: panta@elasticworld.org
#
#   Created: 16 Nov 2000
#
#   $Id: Makefile.am,v 1.1.1.1 2001/04/03 10:19:31 antirez Exp $
# --------------------------------------------------------------------------
#    Copyright (C) 2000 Marco Pantaleoni. All rights reserved.
#
#  The contents of this file are subject to the elastiC License version 1.0
#  (the "elastiC License"); you may not use this file except in compliance
#  with the elastiC License. You may obtain a copy of the elastiC License at
#  http://www.elasticworld.org/LICENSE
#
#  IN NO EVENT SHALL THE AUTHOR OR DISTRIBUTORS BE LIABLE TO ANY PARTY
#  FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
#  ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
#  DERIVATIVES THEREOF, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
#  POSSIBILITY OF SUCH DAMAGE.
#
#  THE AUTHOR AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
#  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE
#  IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAVE
#  NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
#  MODIFICATIONS.
#
#  See the elastiC License for the specific language governing rights and
#  limitations under the elastiC License.
# ==========================================================================

EXTRA_DIST = document.reg parseopt.sdm		\
	parseopt.sdf				\
	$(man_MANS)				\
	$(html_DATA)				\
	$(sgml_DATA)				\
	$(pod_DATA)				\
	$(txt_DATA)

include $(top_srcdir)/build/rules.mk

parseoptdir = $(datadir)/parseopt
htmldir     = $(datadir)/html
imagesdir   = $(htmldir)/images
sgmldir     = $(datadir)/sgml
poddir      = $(datadir)/pod
txtdir      = $(datadir)/txt
exampledir  = $(parseoptdir)/examples

man_MANS  = parseopt.1
html_DATA = parseopt.html INSTALL.html
sgml_DATA = parseopt.sgml INSTALL.sgml
pod_DATA  = parseopt.pod  INSTALL.pod
txt_DATA  = parseopt.txt  INSTALL.txt

##info_TEXINFOS =

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(imagesdir)
	for p in $(srcdir)/images/*; do \
	  $(INSTALL_DATA) $$p $(DESTDIR)$(imagesdir)/`basename $$p`; \
	done
	$(mkinstalldirs) $(DESTDIR)$(exampledir)
	for p in $(srcdir)/examples/*; do \
	  $(INSTALL_DATA) $$p $(DESTDIR)$(exampledir)/`basename $$p`; \
	done

dist-hook:
	cp -p INSTALL.txt $(distdir)/../INSTALL
	mkdir $(distdir)/images
	cp -p $(srcdir)/images/* $(distdir)/images
	mkdir $(distdir)/examples
	cp -p $(srcdir)/examples/* $(distdir)/examples
