# Generated automatically from Makefile.in by configure.
# Makefile for GNU GNATS manual pages.
# Copyright (C) 1993 Free Software Foundation, Inc.
#
# This file is part of GNU GNATS.
#
# GNU GNATS 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, or (at your option)
# any later version.
# 
# GNU GNATS 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 GNU GNATS; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

srcdir = .
VPATH = $(srcdir)

prefix = /usr/local

exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib

datadir = $(prefix)/lib

mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
manldir = $(mandir)/manl
man1ext = .1
man8ext = .8
infodir = $(prefix)/info
includedir = $(prefix)/include
oldincludedir =
docdir = $(datadir)/doc

SHELL = /bin/sh

INSTALL = $(srcdir)/../../install.sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644

#### host, target, and site dependent makefile fragments come in here.
###

SRCS1=	edit-pr$(man1ext) query-pr$(man1ext)
MAN1=	edit-pr.man query-pr.man
SRCS8=  mkcat$(man8ext) mkdist$(man8ext) queue-pr$(man8ext) file-pr$(man8ext) rmcat$(man8ext) gen-index$(man8ext)
MAN8 =	mkcat.man mkdist.man queue-pr.man file-pr.man rmcat.man gen-index.man
SRCSL=	gnats.l
MANL =	gnats.man

DISTFILES = Makefile.in $(MAN1) $(MAN8) $(MANL)

all: all-tools

all-gnats gnats-man-pages: $(SRCS1) $(SRCS8) $(SRCSL)
all-tools tools-man-pages: $(SRCS1) $(SRCSL)

.PHONY: check
check:

$(SRCS1): ../Makefile $(MAN1)
	file=`echo $@ | sed -e 's,\$(man1ext),,'` ; \
	sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
	    -e 's,@VERSION@,$(VERSION),g' $(srcdir)/$$file.man > tmp-$@
	mv tmp-$@ $@

$(SRCS8): ../Makefile $(MAN8)
	file=`echo $@ | sed -e 's,\$(man8ext),,'` ; \
	sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
	    -e 's,xGNATS_SITEx,$(GNATS_SITE),g' \
	    -e 's,@LIBDIR@,$(libdir),g' \
	    -e 's,@VERSION@,$(VERSION),g' $(srcdir)/$$file.man > tmp-$@
	mv tmp-$@ $@

$(SRCSL): ../Makefile $(MANL)
	file=`echo $@ | sed -e 's,\.l,,'` ; \
	sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
	    -e 's,xGNATS_SITEx,$(GNATS_SITE),g' \
	    -e 's,@BINDIR@,$(bindir),g' \
	    -e 's,@VERSION@,$(VERSION),g' $(srcdir)/$$file.man > tmp-$@
	mv tmp-$@ $@

info install-info clean-info:
dvi:
TAGS:

mostlyclean: force
	rm -f $(SRCS1) $(SRCS8) $(SRCSL)
clean: mostlyclean
distclean: clean
	rm -f Makefile
realclean: distclean

install: install-tools

install-gnats install-gnats-man: all-gnats install-tools
	for i in $(SRCS8); do \
	    $(INSTALL_DATA) $$i $(man8dir)/$$i; \
	done

install-tools install-tools-man: all-tools
	for i in $(SRCS1); do \
	    $(INSTALL_DATA) $$i $(man1dir)/$$i; \
	done
	for i in $(SRCSL); do \
	    $(INSTALL_DATA) $$i $(manldir)/$$i; \
	done

uninstall:
	-for i in $(SRCS1); do rm -f $(man1dir)/$$i; done
	-for i in $(SRCSL); do rm -f $(manldir)/$$i; done
	-for i in $(SRCS8); do rm -f $(man8dir)/$$i; done

force:
dist:

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:
