# Makefile.in --- Mesa GL Widget for X11 Toolkit Programming
# Copyright (C) 1995 by
#   Jeroen van der Zijp <jvz@cyberia.cfdrc.com>
#   Thorsten Ohl <Thorsten.Ohl@Physik.TH-Darmstadt.de>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile.in,v 1.6 1995/04/22 14:13:02 ohl Exp $
#
########################################################################

SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
mesa_srcdir = @mesa_srcdir@
VPATH = @srcdir@

prefix = @prefix@
manprefix =

mandir = $(prefix)/man/man3

INSTALL_DATA = @INSTALL@

POD2MAN = @POD2MAN@
POD2HTML = @POD2HTML@

########################################################################
# No user serviceable parts below!
########################################################################

PODS = MesaDrawingArea.pod MesaWorkstation.pod \
       GLwDrawingArea.pod GLwCreateMDrawingArea.pod \
       GLwDrawingAreaSwapBuffers.pod GLwDrawingAreaMakeCurrent.pod

MANS = $(PODS:.pod=.3x)
HTMLS = $(PODS:.pod=.html)

all: $(MANS) $(HTMLS)

install: $(MANS)
	$(INSTALL_DATA) $(MANS) $(mandir)

uninstall:
	cd $(mandir) && rm -f $(MANS)

.SUFFIXES:
.SUFFIXES: .html .3x .pod

.pod.html:
	if test -n "$(POD2HTML)"; then \
	  $(POD2HTML) $^ > $@; \
	else \
	  touch $@; \
	fi

.pod.3x:
	if test -n "$(POD2MAN)"; then \
	  $(POD2MAN) $^ > $@; \
	else \
	  touch $@; \
	 fi

# Standard GNU clean* targets:
maintainer-clean: clean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."
	rm -f *.3x *.html

mostlyclean: clean

distclean: clean
	rm -f Makefile

clean:
	rm -f .*~ *~

# Additional clean* targets:
realclean: distclean

# GNU autoconf(1) targets:
Makefile: Makefile.in $(top_srcdir)/config.status
	cd $(top_srcdir); $(SHELL) config.status
