# Generated automatically from Makefile.in by configure.
# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.5 2001/01/18 02:28:47 rocky Exp $
# Makefile for Motif version of xps.
#
#  Copyright (C) 1998, 99 Rocky Bernstein
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 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 General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#######################################
# Set up various variables variously:
#######################################
SHELL = /bin/sh

PACKAGE  = xps

srcdir   = .

# Files making up the documentation part of this package
DOCS     = $(PACKAGE).man $(PACKAGE).html

# Stuff for needed for "make install"
prefix          = /opt/platform/X11
INSTALL         = /opt/platform/bin/install -c
mkinstalldirs   = $(SHELL) ../mkinstalldirs
MANSUFFIX       = 1
mandir          = ${prefix}/man/man$(MANSUFFIX)

PERL 		= perl

#########################################################################
# Just dependencies.
#########################################################################

# THIS SHOULD BE THE FIRST TARGET!
all: $(DOCS)

# Remove all implicit rules
.SUFFIXES:

# These are the targets below for which the target isn't a file.
.PHONY:	all maintainer-clean install install.man 

#########################################################################
# Enough. Makefile RULES!
#########################################################################

# What we need to do to install this on your system.
install: install.man 

# Install the manual page for this program.
install.man: $(PACKAGE).man
	@if [ -d $(mandir) ]; then set +x; \
	else (set -x; $(mkinstalldirs) $(mandir)); fi
	$(INSTALL) $(INSTMANFLAGS) $(PACKAGE).man $(mandir)/$(PACKAGE).$(MANSUFFIX)

# What we need to do to install this on your system.
uninstall: 
	if [ -f $(bindir)/$(PACKAGE) ] ; then \
	  rm $(mandir)/$(PACKAGE).$(MANSUFFIX); \
	fi \


# Clean to remove all unneeded files and anything that can be regenerated.
maintainer-clean: 
	@echo "This command is intended for maintainers to use;"
	rm -f $(PACKAGE).html $(PACKAGE).man

Makefile: Makefile.in
	../$(srcdir)/config.status

$(PACKAGE).html: $(PACKAGE).pod
	pod2html --infile=$< --outfile=$@

$(PACKAGE).man: $(PACKAGE).pod
	pod2man --center='User Commands' --section='$(PACKAGE)($(MANSUFFIX))' $(PACKAGE).pod >$@
